mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
fakeRoku: don't start listener if disabled
git-svn-id: https://svn.fhem.de/fhem/trunk@11870 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e3a257d295
commit
018f2a935b
@ -224,6 +224,8 @@ fakeRoku_startListener($)
|
||||
|
||||
fakeRoku_stopListener($hash);
|
||||
|
||||
return undef if( AttrVal($name, "disable", 0 ) == 1 );
|
||||
|
||||
my $port = AttrVal($name, 'httpPort', 0);
|
||||
if( my $socket = IO::Socket::INET->new(LocalPort=>$port, Listen=>10, Blocking=>0, ReuseAddr=>1, ReusePort=>defined(&ReusePort)?1:0) ) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user