mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 11:54:22 -04: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
2 changed files with 2 additions and 2 deletions
|
@ -1128,7 +1128,7 @@ std::string CUPnPControlPoint::getExternalAddress()
|
||||||
"CUPnPControlPoint::AddPortMapping: "
|
"CUPnPControlPoint::AddPortMapping: "
|
||||||
"WAN Service not detected." << std::endl;
|
"WAN Service not detected." << std::endl;
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return "";
|
||||||
}
|
}
|
||||||
std::string result = m_WanService->GetStateVariable("NewExternalIPAddress");
|
std::string result = m_WanService->GetStateVariable("NewExternalIPAddress");
|
||||||
#ifdef UPNP_DEBUG
|
#ifdef UPNP_DEBUG
|
||||||
|
|
|
@ -398,7 +398,7 @@ bool upnphandler::getExternalAddress(struct sockaddr_in &addr)
|
||||||
{
|
{
|
||||||
std::string externalAdress = cUPnPControlPoint->getExternalAddress();
|
std::string externalAdress = cUPnPControlPoint->getExternalAddress();
|
||||||
|
|
||||||
if(!externalAdress.empty())
|
if(!externalAdress.empty() && externalAdress != "")
|
||||||
{
|
{
|
||||||
const char* externalIPAddress = externalAdress.c_str();
|
const char* externalIPAddress = externalAdress.c_str();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue