Commit 5c44b34e authored by Mike Hibler's avatar Mike Hibler

All '.' in the default route interface name.

Just in case the default route is via a VLAN device.
parent 340c5767
......@@ -157,7 +157,7 @@ if (!$NOIP) {
if ($line =~ /^default via (\d+\.\d+\.\d+\.\d+)/) {
$defroute = $1;
}
if ($line =~ /^default via [\w\.\/]*\s*dev\s*([\w]*)/) {
if ($line =~ /^default via [\w\.\/]+\s+dev\s+([\w\.]+)/) {
$defiface = $1;
}
}
......
......@@ -110,7 +110,7 @@ if (!$NOIP) {
if ($line =~ /^default via (\d+\.\d+\.\d+\.\d+)/) {
$defroute = $1;
}
if ($line =~ /^default via [\w\.\/]*\s*dev\s*([\w]*)/) {
if ($line =~ /^default via [\w\.\/]+\s+dev\s+([\w\.]+)/) {
$defiface = $1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment