From 8099d2b0456dcd4d4a2aa563ecb7e7bbd2d0887b Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 6 Feb 2015 14:34:36 -0800 Subject: [PATCH] Bring functions for checking allowed IPs into sync http://virtualmin.com/node/36017 --- webmin/webmin-lib.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webmin/webmin-lib.pl b/webmin/webmin-lib.pl index cb5be5113..b5c3500ab 100755 --- a/webmin/webmin-lib.pl +++ b/webmin/webmin-lib.pl @@ -1546,6 +1546,13 @@ elsif ($h =~ /^([0-9\.]+)\/([0-9\.]+)$/) { &check_ipaddress($2) || return &text('access_emask', "$2"); } +elsif ($h =~ /^([0-9\.]+)\-([0-9\.]+)$/) { + # IPv4 address + &check_ipaddress("$1") || + return &text('access_eip', "$1"); + &check_ipaddress("$2") || + return &text('access_eip', "$2"); + } elsif ($h =~ /^[0-9\.]+$/) { # IPv4 address &check_ipaddress($h) ||