node: Use loopback address as git-daemon default

Prevents external connections to it.
This commit is contained in:
Alexis Sellier
2023-03-01 13:03:42 +01:00
parent 796ae2f96a
commit 411c54a604
+1 -4
View File
@@ -128,10 +128,7 @@ fn execute() -> anyhow::Result<()> {
};
let proxy = net::SocketAddr::new(net::Ipv4Addr::LOCALHOST.into(), 9050);
let daemon = options.daemon.unwrap_or_else(|| {
net::SocketAddr::new(
net::Ipv4Addr::UNSPECIFIED.into(),
radicle::git::PROTOCOL_PORT,
)
net::SocketAddr::new(net::Ipv4Addr::LOCALHOST.into(), radicle::git::PROTOCOL_PORT)
});
let (notify, signals) = chan::bounded(1);