Skip to content

Commit

Permalink
UPnP: better fix for postURL error that doesn't require behavioural b…
Browse files Browse the repository at this point in the history
…reaks
  • Loading branch information
dktapps committed Jan 22, 2025
1 parent 406ddf3 commit 6b606dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/network/upnp/UPnP.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public static function portForward(string $serviceURL, string $internalIP, int $
'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);
}
Expand Down

0 comments on commit 6b606dc

Please sign in to comment.