rust/hedgewars-server/src/server/network.rs
changeset 15197 f6115638aa92
parent 15196 f1c2289d40bd
child 15539 abd5eb807166
--- a/rust/hedgewars-server/src/server/network.rs	Wed Jun 19 01:47:56 2019 +0300
+++ b/rust/hedgewars-server/src/server/network.rs	Wed Jun 19 02:40:00 2019 +0300
@@ -523,7 +523,12 @@
             response.add(Redirect(self.ssl.listener.local_addr().unwrap().port()).send_self())
         }
 
-        handlers::handle_client_accept(&mut self.server, client_id, &mut response);
+        handlers::handle_client_accept(
+            &mut self.server,
+            client_id,
+            &mut response,
+            self.clients[client_id].peer_addr.ip().is_loopback(),
+        );
         self.handle_response(response, poll);
     }