mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 08:10:40 +08:00
node: Use loopback address as git-daemon default
Prevents external connections to it.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user