Merge branch 'release/3.2'

This commit is contained in:
Dylan K. Taylor 2018-07-26 16:00:46 +01:00
commit c3bc751b04

View File

@ -47,8 +47,9 @@ abstract class UPnP{
/** @noinspection PhpUndefinedClassInspection */
$com = new \COM("HNetCfg.NATUPnP");
/** @noinspection PhpUndefinedFieldInspection */
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 */