mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-13 21:10:06 +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>
|
/// <summary>
|
||||||
/// Return true if this identity is localhost. (Either IPv6 ::1, or IPv4 127.0.0.1)
|
/// Return true if this identity is localhost. (Either IPv6 ::1, or IPv4 127.0.0.1)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user