mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Merge tag '3.9.8'
This commit is contained in:
@ -63,8 +63,7 @@ class UPnP implements NetworkInterface{
|
||||
/** @noinspection PhpUndefinedClassInspection */
|
||||
$com = new \COM("HNetCfg.NATUPnP");
|
||||
/** @noinspection PhpUndefinedFieldInspection */
|
||||
|
||||
if($com === false or !is_object($com->StaticPortMappingCollection)){
|
||||
if(!is_object($com->StaticPortMappingCollection)){
|
||||
throw new \RuntimeException("UPnP unsupported or network discovery is not enabled");
|
||||
}
|
||||
/** @noinspection PhpUndefinedFieldInspection */
|
||||
|
Reference in New Issue
Block a user