You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-06 02:11:06 +09:00
- UPnP changes - now tries to parse any incoming message, regardless of port
This commit is contained in:
@@ -398,9 +398,9 @@ namespace Lidgren.Network
|
||||
|
||||
IPEndPoint ipsender = (IPEndPoint)m_senderRemote;
|
||||
|
||||
if (ipsender.Port == 1900)
|
||||
if (m_upnp != null && now < m_upnp.m_discoveryResponseDeadline)
|
||||
{
|
||||
// UPnP response
|
||||
// is this an UPnP response?
|
||||
try
|
||||
{
|
||||
string resp = System.Text.Encoding.ASCII.GetString(m_receiveBuffer, 0, bytesReceived);
|
||||
|
||||
Reference in New Issue
Block a user