mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
UPnP: better fix for postURL error that doesn't require behavioural breaks
This commit is contained in:
parent
406ddf3e53
commit
6b606dca95
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user