mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 06:38:01 +03:00
Add NetAddress.IsFakeIPv4
This commit is contained in:
parent
86aa1439aa
commit
36e3f3a58f
@ -110,6 +110,18 @@ namespace Steamworks.Data
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return true if IP is a fake IPv4 for Steam Datagram Relay
|
||||
/// </summary>
|
||||
public bool IsFakeIPv4
|
||||
{
|
||||
get
|
||||
{
|
||||
NetAddress self = this;
|
||||
return SteamNetworkingUtils.Internal.IsFakeIPv4( InternalGetIPv4( ref self ) );
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return true if this identity is localhost. (Either IPv6 ::1, or IPv4 127.0.0.1)
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user