Merge pull request #12044 from jmlee337/upnpport

Do not try portmapping when using traversal server
This commit is contained in:
Admiral H. Curtiss 2023-08-18 21:28:52 +02:00 committed by GitHub
commit 8a96ce73f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ NetPlayServer::NetPlayServer(const u16 port, const bool forward_port, NetPlayUI*
m_chunked_data_thread = std::thread(&NetPlayServer::ChunkedDataThreadFunc, this);
#ifdef USE_UPNP
if (forward_port)
if (forward_port && !traversal_config.use_traversal)
Common::UPnP::TryPortmapping(port);
#endif
}