diff --git a/fhem/FHEM/98_telnet.pm b/fhem/FHEM/98_telnet.pm index d7a6bb1ae..19db579a3 100644 --- a/fhem/FHEM/98_telnet.pm +++ b/fhem/FHEM/98_telnet.pm @@ -21,7 +21,7 @@ telnet_Initialize($) $hash->{UndefFn} = "telnet_Undef"; $hash->{AttrFn} = "telnet_Attr"; $hash->{NotifyFn}= "telnet_SecurityCheck"; - $hash->{AttrList} = "globalpassword password prompt ". + $hash->{AttrList} = "globalpassword password prompt allowedCommands ". "allowfrom SSL connectTimeout connectInterval ". "encoding:utf8,latin1 sslVersion"; $hash->{ActivateInformFn} = "telnet_ActivateInform"; @@ -269,7 +269,8 @@ telnet_Read($) undef($hash->{prevlines}); } $cmd = latin1ToUtf8($cmd) if( $hash->{encoding} eq "latin1" ); - $ret = AnalyzeCommandChain($hash, $cmd); + $ret = AnalyzeCommandChain($hash, $cmd, + AttrVal($sname,"allowedCommands",undef)); push @ret, $ret if(defined($ret)); } } else { @@ -420,6 +421,8 @@ telnet_ActivateInform($;$) Attributes: