mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-14 18:34:29 -05:00
fix a bug in upnp
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1899 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
89ab9b1553
commit
225cee6627
@ -1128,7 +1128,7 @@ std::string CUPnPControlPoint::getExternalAddress()
|
||||
"CUPnPControlPoint::AddPortMapping: "
|
||||
"WAN Service not detected." << std::endl;
|
||||
#endif
|
||||
return false;
|
||||
return "";
|
||||
}
|
||||
std::string result = m_WanService->GetStateVariable("NewExternalIPAddress");
|
||||
#ifdef UPNP_DEBUG
|
||||
|
@ -398,7 +398,7 @@ bool upnphandler::getExternalAddress(struct sockaddr_in &addr)
|
||||
{
|
||||
std::string externalAdress = cUPnPControlPoint->getExternalAddress();
|
||||
|
||||
if(!externalAdress.empty())
|
||||
if(!externalAdress.empty() && externalAdress != "")
|
||||
{
|
||||
const char* externalIPAddress = externalAdress.c_str();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user