node: Use loopback address as git-daemon default
Prevents external connections to it.
This commit is contained in:
parent
796ae2f96a
commit
411c54a604
|
|
@ -128,10 +128,7 @@ fn execute() -> anyhow::Result<()> {
|
||||||
};
|
};
|
||||||
let proxy = net::SocketAddr::new(net::Ipv4Addr::LOCALHOST.into(), 9050);
|
let proxy = net::SocketAddr::new(net::Ipv4Addr::LOCALHOST.into(), 9050);
|
||||||
let daemon = options.daemon.unwrap_or_else(|| {
|
let daemon = options.daemon.unwrap_or_else(|| {
|
||||||
net::SocketAddr::new(
|
net::SocketAddr::new(net::Ipv4Addr::LOCALHOST.into(), radicle::git::PROTOCOL_PORT)
|
||||||
net::Ipv4Addr::UNSPECIFIED.into(),
|
|
||||||
radicle::git::PROTOCOL_PORT,
|
|
||||||
)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let (notify, signals) = chan::bounded(1);
|
let (notify, signals) = chan::bounded(1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue