Allow external remote address get

This commit is contained in:
derek.holloway committed 2026-08-05 13:56:12 -07:00
1 parent 486b53b402
commit 41805d7de9
1 file changed
+4 -3
+4 -3
View File
@@ -82,9 +82,11 @@ namespace Mistox.Server {
}
}
public IPAddress getRemote() {
return _remoteAddress.Address;
}
public void Dispose() {
if (!Connected) return;
Connected = false;
_cts.Cancel();
_client.Close();
@@ -93,7 +95,6 @@ namespace Mistox.Server {
_parent.Connections.TryRemove(UserName, out _);
_parent.InvokeUserDisconnected(this);
_parent.Alive = false;
// Remove this item from the Dictionary on the Server for garbage collection
}
}