Skip to content

Commit

Permalink
Fix returning of external IP address for some routers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Göckel committed Nov 16, 2011
1 parent add5308 commit aaa2417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thirdparty/libportfwd/src/portfwd.cpp
Expand Up @@ -149,7 +149,7 @@ Portfwd::get_status()

// get external IP adress
char ip[16];
if ( 0 != UPNP_GetExternalIPAddress( m_urls->controlURL, m_data->CIF.servicetype, (char*)&ip ) )
if ( 0 != UPNP_GetExternalIPAddress( m_urls->controlURL, m_data->first.servicetype, (char*)&ip ) )
{
m_externalip = ""; //failed
}
Expand Down

0 comments on commit aaa2417

Please sign in to comment.