Browse Source

Merge pull request #377 from chris5560/master

ddns-scripts: fix from ticket #17998 wrongly detect ipv4 address start with 10x.x.x.x
lilik-openwrt-22.03
Nikos Mavrogiannopoulos 10 years ago
parent
commit
832aa53af9
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      net/ddns-scripts/Makefile
  2. +1
    -1
      net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh

+ 1
- 1
net/ddns-scripts/Makefile View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ddns-scripts PKG_NAME:=ddns-scripts
PKG_VERSION:=2.0.1 PKG_VERSION:=2.0.1
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)


+ 1
- 1
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh View File

@ -553,7 +553,7 @@ send_update() {
local __IP __URL __ANSWER __ERR local __IP __URL __ANSWER __ERR
# verify given IP # verify given IP
[ $use_ipv6 -eq 0 ] && __IP=$(echo $1 | grep -v -E "(^0|^10|^127|^172|^192)") # no private IPv4's
[ $use_ipv6 -eq 0 ] && __IP=$(echo $1 | grep -v -E "(^0|^10\.|^127|^172|^192)") # no private IPv4's
[ $use_ipv6 -eq 1 ] && __IP=$(echo $1 | grep "^[0-9a-eA-E]") # no IPv6 addr starting with fxxx of with ":" [ $use_ipv6 -eq 1 ] && __IP=$(echo $1 | grep "^[0-9a-eA-E]") # no IPv6 addr starting with fxxx of with ":"
[ -z "$__IP" ] && critical_error "Invalid or no IP '$1' given" [ -z "$__IP" ] && critical_error "Invalid or no IP '$1' given"


Loading…
Cancel
Save