do not try to call OpenAndConfPCPv6Socket() when IPv6 is off

see #49
This commit is contained in:
Thomas Bernard 2016-12-16 09:32:41 +01:00
parent cfa01c5c32
commit 2a1cc8d798
1 changed files with 3 additions and 1 deletions

View File

@ -2004,7 +2004,9 @@ main(int argc, char * * argv)
#endif
#if defined(ENABLE_IPV6) && defined(ENABLE_PCP)
spcp_v6 = OpenAndConfPCPv6Socket();
if(!GETFLAG(IPV6DISABLEDMASK)) {
spcp_v6 = OpenAndConfPCPv6Socket();
}
#endif
/* for miniupnpdctl */