mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
74_THINKINGCLEANER.pm: prevent people from using roomba's own address for webhook backwards connection to FHEM
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12321 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
adbd26e9cb
commit
6750b6e04e
@ -883,6 +883,12 @@ sub THINKINGCLEANER_Attr(@) {
|
||||
&& $attrName eq "webhookHttpHostname"
|
||||
&& $attrVal !~ /^([A-Za-z_.0-9]+\.[A-Za-z_.0-9]+)|[0-9:]+$/ );
|
||||
|
||||
return
|
||||
"Invalid value for attribute $attrName: needs to be different from the defined name/address of your Roomba, we need to know how Rooma can connect back to FHEM here!"
|
||||
if ( $attrVal
|
||||
&& $attrName eq "webhookHttpHostname"
|
||||
&& $attrVal eq $hash->{DeviceName} );
|
||||
|
||||
return
|
||||
"Invalid value for attribute $attrName: FHEMWEB instance $attrVal not existing"
|
||||
if (
|
||||
|
Loading…
x
Reference in New Issue
Block a user