From c26a1b80f104c8b9f42c323b77a308fb70a2c993 Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Mon, 3 Jun 2019 16:55:40 +0200 Subject: [PATCH] Server Now Listens on Every Interface. '::' is needed to listen on all interfaces. '::1' listens only on local interface. --- server/texture-sync-server/src/main.rs | 2 +- server/texture-sync-server/src/protocol/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/texture-sync-server/src/main.rs b/server/texture-sync-server/src/main.rs index 1fe25ac..7507123 100644 --- a/server/texture-sync-server/src/main.rs +++ b/server/texture-sync-server/src/main.rs @@ -29,7 +29,7 @@ fn main() -> std::io::Result<()> { let network_conf = ProtocolConfig::default(); println!( - "listening on {}:{}", + "listening on {} : {}", network_conf.listen_addr, network_conf.port ); diff --git a/server/texture-sync-server/src/protocol/mod.rs b/server/texture-sync-server/src/protocol/mod.rs index 20543a9..b8c3f34 100644 --- a/server/texture-sync-server/src/protocol/mod.rs +++ b/server/texture-sync-server/src/protocol/mod.rs @@ -67,7 +67,7 @@ impl Default for ProtocolConfig { port: 10796, read_timeout_s: 60, write_timeout_s: 75, - listen_addr: "::1".to_owned(), + listen_addr: "::".to_owned(), } } }