Enabling 0 for dynamic port-number. By andre / justme1968
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2954 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -40,10 +40,10 @@ TcpServer_Open($$$)
|
||||
}
|
||||
|
||||
$hash->{FD} = $hash->{SERVERSOCKET}->fileno();
|
||||
$hash->{PORT} = $port;
|
||||
$hash->{PORT} = $hash->{SERVERSOCKET}->sockport();
|
||||
|
||||
$selectlist{"$name.$port"} = $hash;
|
||||
Log(3, "$name: port $port opened");
|
||||
Log(3, "$name: port ". $hash->{PORT} ." opened");
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user