mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +00:00
Merge branch 'release/3.2'
This commit is contained in:
commit
c3bc751b04
@ -47,8 +47,9 @@ abstract class UPnP{
|
|||||||
/** @noinspection PhpUndefinedClassInspection */
|
/** @noinspection PhpUndefinedClassInspection */
|
||||||
$com = new \COM("HNetCfg.NATUPnP");
|
$com = new \COM("HNetCfg.NATUPnP");
|
||||||
/** @noinspection PhpUndefinedFieldInspection */
|
/** @noinspection PhpUndefinedFieldInspection */
|
||||||
|
|
||||||
if($com === false or !is_object($com->StaticPortMappingCollection)){
|
if($com === false or !is_object($com->StaticPortMappingCollection)){
|
||||||
throw new \RuntimeException("Failed to portforward (unsupported?)");
|
throw new \RuntimeException("Failed to portforward using UPnP. Ensure that network discovery is enabled in Control Panel.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @noinspection PhpUndefinedFieldInspection */
|
/** @noinspection PhpUndefinedFieldInspection */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user