mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-26 10:34:52 +00:00
34_ESPEasy.pm: reject non local IPs wo/ basic auth
git-svn-id: https://svn.fhem.de/fhem/trunk@14896 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
04c169e828
commit
8680cf8de9
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 34_ESPEasy: reject non local IPs wo/ basic auth
|
||||||
- bugfix: 50_TelegramBot: delayed retry & rename (#msg668108)
|
- bugfix: 50_TelegramBot: delayed retry & rename (#msg668108)
|
||||||
- changed: 70_BRAVIA: renamed reading/internal modelName to model
|
- changed: 70_BRAVIA: renamed reading/internal modelName to model
|
||||||
- new: 98_GOOGLECAST: first release, read commandref for requirements
|
- new: 98_GOOGLECAST: first release, read commandref for requirements
|
||||||
|
@ -36,7 +36,7 @@ use Color;
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# global/default values
|
# global/default values
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
my $module_version = "1.30"; # Version of this module
|
my $module_version = "1.31"; # Version of this module
|
||||||
my $minEEBuild = 128; # informational
|
my $minEEBuild = 128; # informational
|
||||||
my $minJsonVersion = 1.02; # checked in received data
|
my $minJsonVersion = 1.02; # checked in received data
|
||||||
|
|
||||||
@ -690,7 +690,8 @@ sub ESPEasy_Read($) {
|
|||||||
# public IPs
|
# public IPs
|
||||||
if (!defined $logHeader->{Authorization} && $peer !~ m/$d_localIPs/) {
|
if (!defined $logHeader->{Authorization} && $peer !~ m/$d_localIPs/) {
|
||||||
Log3 $bname, 2, "$btype $name: No basic auth set while using public IP "
|
Log3 $bname, 2, "$btype $name: No basic auth set while using public IP "
|
||||||
. "address $peer";
|
. "address. $peer rejected.";
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$logHeader->{Authorization} =~ s/Basic\s.*\s/Basic ***** / if defined $logHeader->{Authorization};
|
$logHeader->{Authorization} =~ s/Basic\s.*\s/Basic ***** / if defined $logHeader->{Authorization};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user