You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 23:56:30 +09:00
UPnP support added: get external ip, add forwarding rule and delete forwarding rule
This commit is contained in:
@@ -115,6 +115,7 @@ namespace Lidgren.Network
|
||||
connectionReset = false;
|
||||
try
|
||||
{
|
||||
// TODO: refactor this check outta here
|
||||
if (target.Address == IPAddress.Broadcast)
|
||||
m_socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true);
|
||||
|
||||
@@ -230,6 +231,7 @@ namespace Lidgren.Network
|
||||
connectionReset = false;
|
||||
try
|
||||
{
|
||||
// TODO: refactor this check outta here
|
||||
if (target.Address == IPAddress.Broadcast)
|
||||
m_socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user