upnpc: Show hint to use IPv6 (option -6) for pinhole commands

Control points that have not been authenticated and authorized as defined in IGDv2 SHOULD use their IPv6 GUA when calling this action.
http://upnp.org/specs/gw/UPnP-gw-WANIPv6FirewallControl-v1-Service.pdf
This commit is contained in:
Self-Hosting-Group 2024-01-13 10:10:13 +01:00
parent e98515ac5e
commit e165af32ae
1 changed files with 4 additions and 0 deletions

View File

@ -691,6 +691,10 @@ int main(int argc, char ** argv)
return 1;
}
if(ipv6 == 0 && (command == 'A' || command == 'D' || command == 'U' || command == 'K' || command == 'C' || command == 'G')) {
printf("Use IPv6 (option -6) GUA address to ensure UPnP IGDv2 pinholes are allowed\n\n");
}
if( rootdescurl
|| (devlist = upnpDiscover(2000, multicastif, minissdpdpath,
localport, ipv6, ttl, &error)))