From bb362f307d08d4c364999dd7427fc056378c1678 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Mon, 6 Mar 2017 21:39:03 -0500 Subject: [PATCH] netplay: don't advertise over LAN or try to open a port with UPnP if we're using a MITM server --- network/netplay/netplay_frontend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index de2ef8f9ad..8306acc4eb 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -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);