Return loopback IP if RealPlayer is false
This commit is contained in:
parent
919dc3fed7
commit
ccea7b7d57
1 changed files with 1 additions and 1 deletions
|
|
@ -892,7 +892,7 @@ namespace TShockAPI
|
||||||
CacheIP = RealPlayer ? (Netplay.Clients[Index].Socket.IsConnected()
|
CacheIP = RealPlayer ? (Netplay.Clients[Index].Socket.IsConnected()
|
||||||
? TShock.Utils.GetRealIP(Netplay.Clients[Index].Socket.GetRemoteAddress().ToString())
|
? TShock.Utils.GetRealIP(Netplay.Clients[Index].Socket.GetRemoteAddress().ToString())
|
||||||
: "")
|
: "")
|
||||||
: "";
|
: "127.0.0.1";
|
||||||
else
|
else
|
||||||
return CacheIP;
|
return CacheIP;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue