1
0
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:
lidgren
2012-10-25 08:12:14 +00:00
parent e1a66ae0cd
commit 2db09b002d
2 changed files with 49 additions and 9 deletions

View File

@@ -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);