fixes incorrect local IP address check

This commit is contained in:
Arvid Norberg 2007-03-16 18:03:18 +00:00
parent f89bcdd1de
commit 47c08ad50d
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ natpmp::natpmp(io_service& ios, portmap_callback_t const& cb)
if ((local.to_ulong() & 0xff000000) != 0x0a000000
&& (local.to_ulong() & 0xfff00000) != 0xac100000
&& (local.to_ulong() & 0xffff0000) != 0xaca80000)
&& (local.to_ulong() & 0xffff0000) != 0xc0a80000)
{
// the local address seems to be an external
// internet address. Assume it is not behind a NAT