2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

Enabling 0 for dynamic port-number. By andre / justme1968

git-svn-id: https://svn.fhem.de/fhem/trunk@2954 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-03-21 11:14:31 +00:00
parent 03ee68e7a0
commit 27ba198cad

View File

@ -40,10 +40,10 @@ TcpServer_Open($$$)
} }
$hash->{FD} = $hash->{SERVERSOCKET}->fileno(); $hash->{FD} = $hash->{SERVERSOCKET}->fileno();
$hash->{PORT} = $port; $hash->{PORT} = $hash->{SERVERSOCKET}->sockport();
$selectlist{"$name.$port"} = $hash; $selectlist{"$name.$port"} = $hash;
Log(3, "$name: port $port opened"); Log(3, "$name: port ". $hash->{PORT} ." opened");
return undef; return undef;
} }