--- 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);
}