mirror of
https://github.com/webmin/webmin.git
synced 2026-05-27 00:20:30 +01:00
Handle IP address regexps
This commit is contained in:
@@ -77,6 +77,10 @@ while($line = <CONF>) {
|
||||
# regular word
|
||||
push(@ltok, $1); $line = $2;
|
||||
}
|
||||
elsif ($line =~ /^\s*([0-9\[\]\-]+\.[0-9\[\]\-]+\.[0-9\[\]\-]+\.[0-9\[\]\-]+)(.*)$/) {
|
||||
# IP address regexp
|
||||
push(@ltok, $1); $line = $2;
|
||||
}
|
||||
elsif ($line =~ /^\s*(\d+\.\d+\.\d+\.\d+)(.*)$/) {
|
||||
# IP address
|
||||
push(@ltok, $1); $line = $2;
|
||||
|
||||
Reference in New Issue
Block a user