diff --git a/libretroshare/src/upnp/upnphandler_linux.cc b/libretroshare/src/upnp/upnphandler_linux.cc index f252d03f9..4cec21bac 100644 --- a/libretroshare/src/upnp/upnphandler_linux.cc +++ b/libretroshare/src/upnp/upnphandler_linux.cc @@ -182,7 +182,7 @@ bool upnphandler::start_upnp() bool res = cUPnPControlPoint->AddPortMappings(upnpPortMapping1); bool res2 = cUPnPControlPoint->AddPortMappings(upnpPortMapping2); - struct sockaddr_in extAddr; + struct sockaddr_storage extAddr; bool extAddrResult = getExternalAddress(extAddr); {