Merge tag '3.9.8'

This commit is contained in:
Dylan K. Taylor
2019-12-08 17:49:39 +00:00
3 changed files with 25 additions and 4 deletions

View File

@ -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 */