UPnP: better fix for postURL error that doesn't require behavioural breaks

This commit is contained in:
Dylan K. Taylor 2025-01-22 17:46:43 +00:00
parent 406ddf3e53
commit 6b606dca95
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -215,6 +215,7 @@ class UPnP{
'SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping"'
];
$err = "";
if(Internet::postURL($serviceURL, $contents, 3, $headers, $err) === null){
throw new UPnPException("Failed to portforward using UPnP: " . $err);
}