Only bind 3658 with RPCN

This commit is contained in:
RipleyTom 2020-09-09 20:49:58 +02:00 committed by Megamouse
parent d9d354c981
commit 676fed7cfc

View File

@ -858,7 +858,8 @@ struct network_thread
WSADATA wsa_data;
WSAStartup(MAKEWORD(2, 2), &wsa_data);
#endif
list_p2p_ports.emplace(std::piecewise_construct, std::forward_as_tuple(3658), std::forward_as_tuple(3658));
if (g_cfg.net.psn_status == np_psn_status::rpcn)
list_p2p_ports.emplace(std::piecewise_construct, std::forward_as_tuple(3658), std::forward_as_tuple(3658));
}
~network_thread()