From 2f8ee6ab9db844c328e4ed6beb2343fff17df0d7 Mon Sep 17 00:00:00 2001 From: MarkusF <> Date: Thu, 7 Mar 2019 04:10:21 +0000 Subject: [PATCH] 50_MOBILEALERTSGW: attribut allowfrom added git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18814 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- CHANGED | 1 + FHEM/50_MOBILEALERTSGW.pm | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGED b/CHANGED index 328bbf867..417acd349 100644 --- a/CHANGED +++ b/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: 50_MOBILEALERTSGW: attribut allowfrom added - new: 71_YAMAHA_MC: initial release - bugfix: 22_HOMEMODE: - fix illegal division by zero in HOMEMODE_Luminance - renamed attribute name HomeYahooWeatherDevice to diff --git a/FHEM/50_MOBILEALERTSGW.pm b/FHEM/50_MOBILEALERTSGW.pm index 7300f0e8a..89dabf732 100644 --- a/FHEM/50_MOBILEALERTSGW.pm +++ b/FHEM/50_MOBILEALERTSGW.pm @@ -34,7 +34,7 @@ sub MOBILEALERTSGW_Initialize($) { #$hash->{NotifyFn}= ($init_done ? "FW_Notify" : "FW_SecurityCheck"); #$hash->{AsyncOutputFn} = "MOBILEALERTSGW_AsyncOutput"; #$hash->{ActivateInformFn} = "MOBILEALERTSGW_ActivateInform"; - $hash->{AttrList} = "forward:0,1 " . $readingFnAttributes; + $hash->{AttrList} = "forward:0,1 allowfrom " . $readingFnAttributes; Log3 "MOBILEALERTSGW", 5, "MOBILEALERTSGW_Initialize finished."; } @@ -755,6 +755,9 @@ sub MOBILEALERTSGW_DecodeUDP($$$) {
  • forward
    If value 1 is set, the data will be forwarded to the MobileAlerts Server http://www.data199.com/gateway/put .
  • +
  • allowfrom
    + Sets from which hosts (gateways) IPs inputs are accepted. If not set all private IPs are allowed. +
  • @@ -826,6 +829,9 @@ sub MOBILEALERTSGW_DecodeUDP($$$) {
  • forward
    Wenn dieser Wert auf 1 gesetzt ist, werden die Daten zusätzlich zum MobileAlerts Server http://www.data199.com/gateway/put gesendet.
  • +
  • allowfrom
    + Gibt an von welchens Host-(Gateways) IPs eingaben angenommen werden. Wenn nicht gesetzt, sind alle privaten IP-Adressen erlaubt. +