00_MQTT2_SERVER.pm: better error message for TLS connect (Forum #124465)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25277 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-11-30 09:48:44 +00:00
parent 3985ab37fc
commit 9957ae95cd

View File

@ -326,6 +326,8 @@ MQTT2_SERVER_Read($@)
# V3:MQIsdb V4:MQTT # V3:MQIsdb V4:MQTT
if(ord($fb) & 0xf) { # lower nibble must be zero if(ord($fb) & 0xf) { # lower nibble must be zero
Log3 $sname, 3, "$cname with bogus CONNECT (".ord($fb)."), disconnecting"; Log3 $sname, 3, "$cname with bogus CONNECT (".ord($fb)."), disconnecting";
Log3 $sname, 3, "TLS activated on the client but not on the server?"
if(!AttrVal($sname,"TLS",0) && ord($fb) == 22);
return CommandDelete(undef, $cname); return CommandDelete(undef, $cname);
} }
($hash->{protoTxt}, $off) = MQTT2_SERVER_getStr($hash, $pl, 0); ($hash->{protoTxt}, $off) = MQTT2_SERVER_getStr($hash, $pl, 0);