mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-25 22:09:21 +00:00
37_dash_dhcp.pm: fixed warning
git-svn-id: https://svn.fhem.de/fhem/trunk@12347 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
48ec288f74
commit
5fa981ffb3
@ -73,7 +73,7 @@ dash_dhcp_startListener($)
|
||||
|
||||
return undef if( IsDisabled($name) > 0 );
|
||||
|
||||
$hash->{PORT} = (getlogin eq 'root')?67:6767;
|
||||
$hash->{PORT} = (!defined(getlogin) || getlogin eq 'root')?67:6767;
|
||||
$hash->{PORT} = AttrVal($name, 'port', $hash->{PORT});
|
||||
Log3 $name, 4, "$name: using port $hash->{PORT}";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user