]> git.deb.at Git - rhonda/impostor.git/commitdiff
Change default ListenIp to match with config
authorminiduikboot <mini@duikbo.at>
Sat, 10 Aug 2024 16:24:21 +0000 (18:24 +0200)
committerminiduikboot <mini@duikbo.at>
Sat, 10 Aug 2024 16:50:57 +0000 (18:50 +0200)
The default ListenIp for the base game server has been set to 0.0.0.0 in
config.json for as long as I remember, and a different value is only
sporadically used. I remember a case where someone was fancy with Split
DNS. 0 is better as a default than localhost, so change the code
accordingly to aligh with config.json

src/Impostor.Api/Config/ServerConfig.cs

index afcca030005a439b9bb97d09476da7471b68a553..85aced75f70631d8668159d5bd8ad9f6ad9025bc 100644 (file)
@@ -13,7 +13,7 @@ namespace Impostor.Api.Config
 
         public ushort PublicPort { get; set; } = 22023;
 
-        public string ListenIp { get; set; } = "127.0.0.1";
+        public string ListenIp { get; set; } = "0.0.0.0";
 
         public ushort ListenPort { get; set; } = 22023;