node: Use loopback address as git-daemon default

Prevents external connections to it.
This commit is contained in:
Alexis Sellier 2023-02-28 09:10:31 +01:00
parent 796ae2f96a
commit 411c54a604
No known key found for this signature in database
1 changed files with 1 additions and 4 deletions

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);