• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IP addresses not accepted as option value for an action
#1
It appears that an action argument that accepts a string,  causes an error when the string is an ip address. To be more accurate, if such as string contains more than two dots, the following error occurs.

Code:
[Jun 16 14:55:12:873035] pilight-daemon: ERROR: rule #2 invalid: variable "http://1.1.1.1/action" is invalid

A simple workaround is defining hostnames for the IP addresses and use those for the action, so for me this is not something that has to be fixed immediately.
 
Reply
#2
Have you enclosed the host inside quotes to enforce string parsing?
 
Reply
#3
Sure!
 
Reply
#4
Should be fixed in latest staging.
 
Reply
#5
Sorry, completely forgot to confirm that this issue has indeed been fixed.
Thanks.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  action arguments not being checked at startup Niek 17 1,747 07-15-2018, 10:51 AM
Last Post: curlymo
  Enhanced lua label action Niek 5 695 07-04-2018, 05:28 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)