rshin / tcmportmapper

Automatically exported from code.google.com/p/tcmportmapper
0 stars 0 forks source link

polling externalIPAddress can lead to empty results #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When polling the externalIPAddress after starting the mapper, the method may 
only return the 
correct value if the mapping just succeeded. Later, the method returns an empty 
value.

Work-around: only fetch the value in the callback, or ignore it if it's empty 
while polling.

This happened with UPnP and a DrayTek (Vigor) router

Might be some race condition (the refresh method might get called, which clears 
the ip address and 
never gets a new one again).

Original issue reported on code.google.com by tempelmann@gmail.com on 19 Jan 2009 at 2:10