diff --git a/miniupnpc/src/miniupnpcmodule.c b/miniupnpc/src/miniupnpcmodule.c index b4a4eb2..08aa242 100644 --- a/miniupnpc/src/miniupnpcmodule.c +++ b/miniupnpc/src/miniupnpcmodule.c @@ -58,7 +58,7 @@ static PyMemberDef UPnP_members[] = { {"lanaddr", T_STRING_INPLACE, offsetof(UPnPObject, lanaddr), READONLY, "ip address on the LAN" }, - {"wanaddr", T_STRING_INPLACE, offsetof(UPnPObject, lanaddr), + {"wanaddr", T_STRING_INPLACE, offsetof(UPnPObject, wanaddr), READONLY, "public ip address on the WAN" }, {"discoverdelay", T_UINT, offsetof(UPnPObject, discoverdelay),