From 4216452fc902a5ab4108d042c7600219e2f018be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 17 May 2020 11:58:00 +0200 Subject: [PATCH] aquatic_udp, aquatic_ws: bind to 0.0.0.0:3000 by default --- README.md | 4 ++-- aquatic_udp/src/lib/config.rs | 2 +- aquatic_ws/src/lib/config.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7a67692..e03cdc2 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ socket_workers = 1 request_workers = 1 [network] -address = '127.0.0.1:3000' +address = '0.0.0.0:3000' max_scrape_torrents = 255 max_response_peers = 255 peer_announce_interval = 900 @@ -142,7 +142,7 @@ Default configuration: socket_workers = 1 [network] -address = '127.0.0.1:3000' +address = '0.0.0.0:3000' use_tls = false tls_pkcs12_path = '' tls_pkcs12_password = '' diff --git a/aquatic_udp/src/lib/config.rs b/aquatic_udp/src/lib/config.rs index 289f5a6..41a05cc 100644 --- a/aquatic_udp/src/lib/config.rs +++ b/aquatic_udp/src/lib/config.rs @@ -111,7 +111,7 @@ impl Default for Config { impl Default for NetworkConfig { fn default() -> Self { Self { - address: SocketAddr::from(([127, 0, 0, 1], 3000)), + address: SocketAddr::from(([0, 0, 0, 0], 3000)), max_scrape_torrents: 255, max_response_peers: 255, peer_announce_interval: 60 * 15, diff --git a/aquatic_ws/src/lib/config.rs b/aquatic_ws/src/lib/config.rs index 4745732..cf208af 100644 --- a/aquatic_ws/src/lib/config.rs +++ b/aquatic_ws/src/lib/config.rs @@ -87,7 +87,7 @@ impl Default for Config { impl Default for NetworkConfig { fn default() -> Self { Self { - address: SocketAddr::from(([127, 0, 0, 1], 3000)), + address: SocketAddr::from(([0, 0, 0, 0], 3000)), use_tls: false, tls_pkcs12_path: "".into(), tls_pkcs12_password: "".into(),