Merge pull request #423 from tuomari/autodiscover

Autodiscovery $config['mydomain'] variable check
This commit is contained in:
Neil Lathwood
2015-01-23 17:32:51 +00:00

View File

@ -16,7 +16,7 @@ function discover_new_device($hostname)
global $config, $debug;
if ($config['autodiscovery']['xdp']) {
if ( isDomainResolves($hostname . "." . $config['mydomain']) ) {
if (!empty($config['mydomain']) && isDomainResolves($hostname . "." . $config['mydomain']) ) {
$dst_host = $hostname . "." . $config['mydomain'];
} else {
$dst_host = $hostname;