From 0867814ae813cda2225b405005dde4711ca860c0 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 21 Oct 2018 21:32:30 -0700 Subject: [PATCH] Fix double NAT port test --- mist/mist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mist/mist.cpp b/mist/mist.cpp index 5a66b54..a52888c 100644 --- a/mist/mist.cpp +++ b/mist/mist.cpp @@ -784,7 +784,7 @@ int main(int argc, char* argv[]) // We don't actually care about the outcome here but it's nice to have in logs // to determine whether solving the double NAT will actually make Moonlight work. - TestAllPorts(&ss, portMsgBuf, sizeof(portMsgBuf)); + TestAllPorts((PSOCKADDR_STORAGE)&locallyReportedWanAddr, portMsgBuf, sizeof(portMsgBuf)); printf("Detected inconsistency between UPnP/NAT-PMP and STUN reported WAN addresses!\n"); }