mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
BBA/BuiltIn: Ignore UPnP request to itself
This commit is contained in:
parent
df53ebb59f
commit
34858e934f
@ -520,6 +520,13 @@ void CEXIETHERNET::BuiltInBBAInterface::HandleUPnPClient()
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_current_ip == ref->from.sin_addr.s_addr)
|
||||
{
|
||||
ref->tcp_socket.disconnect();
|
||||
WARN_LOG_FMT(SP1, "Ignoring UPnP request to itself");
|
||||
return;
|
||||
}
|
||||
|
||||
ref->delay = GetTickCountStd();
|
||||
ref->ip = ref->from.sin_addr.s_addr;
|
||||
ref->local = ref->to.sin_port;
|
||||
|
Loading…
Reference in New Issue
Block a user