Return loopback IP if RealPlayer is false

This commit is contained in:
Armano den Boef 2021-08-09 01:32:17 +02:00 committed by GitHub
parent 919dc3fed7
commit ccea7b7d57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -892,7 +892,7 @@ namespace TShockAPI
CacheIP = RealPlayer ? (Netplay.Clients[Index].Socket.IsConnected()
? TShock.Utils.GetRealIP(Netplay.Clients[Index].Socket.GetRemoteAddress().ToString())
: "")
: "";
: "127.0.0.1";
else
return CacheIP;
}