Skip to content

Commit

Permalink
Add another host check
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Feb 25, 2024
1 parent 65a462c commit 036c451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion A2SServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

Console.WriteLine($"starting A2S server on '{host}:{queryPort}'");

var addr = host == ""
var addr = host is "" or "0.0.0.0"
? IPAddress.Any
: Dns.GetHostAddresses(host, AddressFamily.InterNetwork)[0];

Expand Down

0 comments on commit 036c451

Please sign in to comment.