netplay: don't advertise over LAN or try to open a port with UPnP if we're using a MITM server

This commit is contained in:
Brad Parker 2017-03-06 21:39:03 -05:00
parent ced1dc10c1
commit bb362f307d

View File

@ -790,7 +790,7 @@ bool netplay_pre_frame(netplay_t *netplay)
netplay_try_init_serialization(netplay);
}
if (netplay->is_server)
if (netplay->is_server && !settings->netplay.use_mitm_server)
{
/* Advertise our server */
netplay_lan_ad_server(netplay);