From f4f10269b2838d2b433029479a5ba61f35fcc8d2 Mon Sep 17 00:00:00 2001 From: miniduikboot Date: Wed, 24 Jan 2024 19:55:35 +0100 Subject: [PATCH] Show both warnings --- src/Impostor.Server/Net/MatchmakerService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Impostor.Server/Net/MatchmakerService.cs b/src/Impostor.Server/Net/MatchmakerService.cs index 8845e04..9b0d478 100644 --- a/src/Impostor.Server/Net/MatchmakerService.cs +++ b/src/Impostor.Server/Net/MatchmakerService.cs @@ -40,7 +40,6 @@ namespace Impostor.Server.Net _serverConfig.ResolvePublicIp(), _serverConfig.PublicPort); - // Only show one warning to reduce warning fatigue if (_serverConfig.PublicIp == "127.0.0.1") { // NOTE: If this warning annoys you, set your PublicIp to "localhost" @@ -48,7 +47,8 @@ namespace Impostor.Server.Net _logger.LogError("To allow people on other devices to connect to your server, change this value to your Public IP address"); _logger.LogError("For more info on how to do this see https://github.com/Impostor/Impostor/blob/master/docs/Server-configuration.md"); } - else if (_httpServerConfig.ListenIp == "0.0.0.0") + + if (_httpServerConfig.ListenIp == "0.0.0.0") { _logger.LogWarning("Your HTTP server is exposed to the public internet, we recommend setting up a reverse proxy and enabling HTTPS"); _logger.LogWarning("See https://github.com/Impostor/Impostor/blob/master/docs/Http-server.md for instructions"); -- 2.39.5