updated a few places to use NetState.Address rather than Socket.RemoteEndPoint.Address

added Utility.Intern(IPAddress) and implemented where appropriate
This commit is contained in:
krrios 2007-04-25 00:42:47 +00:00
parent 442b48d406
commit e15ed963d8
9 changed files with 29 additions and 43 deletions

View file

@ -74,9 +74,7 @@ namespace Server.Misc
private static bool IsLocalMachine( NetState state )
{
Socket sock = state.Socket;
IPAddress theirAddress = ((IPEndPoint)sock.RemoteEndPoint).Address;
IPAddress theirAddress = state.Address;
if ( IPAddress.IsLoopback( theirAddress ) )
return true;