diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-10-06 20:48:28 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-10-06 20:48:28 +0100 |
commit | 047d749f00f74798bc984d28602fae37dd957760 (patch) | |
tree | cf3ebd01ed4a00354f7de1eff4bb8eba2cbd3ad4 /test | |
parent | b038d456c95d631d36aaf0c95a17973582046b1c (diff) |
Testsuite: interface number is optional
Diffstat (limited to 'test')
-rwxr-xr-x | test/runtest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runtest b/test/runtest index 558fcf661..ad3a74da8 100755 --- a/test/runtest +++ b/test/runtest @@ -3406,7 +3406,7 @@ open(IFCONFIG, '-|', (grep { -x "$_/ip" } split /:/, $ENV{PATH}) ? 'ip address' or die "** Cannot run 'ip address' or 'ifconfig -a'\n"; while (not ($parm_ipv4 and $parm_ipv6) and defined($_ = <IFCONFIG>)) { - if (/^(?:[0-9]+: )([^:]+): /) { $ifname = $1; } + if (/^(?:[0-9]+: )?([^:]+): /) { $ifname = $1; } if (not $parm_ipv4 and /^\s*inet(?:\saddr)?:?\s?(\d+\.\d+\.\d+\.\d+)(?:\/\d+)?\s/i) { |