[exim-cvs] Test suite: completely omit 127/8 IPs

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Exim Git Commits Mailing List
Dátum:  
Címzett: exim-cvs
Tárgy: [exim-cvs] Test suite: completely omit 127/8 IPs
Gitweb: http://git.exim.org/exim.git/commitdiff/ed63c3090fcc1dd19ce19257553d179a02b47c7b
Commit:     ed63c3090fcc1dd19ce19257553d179a02b47c7b
Parent:     8bc732e8b03ebb4309f4b42626917148d176db49
Author:     Todd Lyons <tlyons@???>
AuthorDate: Mon Oct 20 07:14:42 2014 -0700
Committer:  Todd Lyons <tlyons@???>
CommitDate: Mon Oct 20 07:14:59 2014 -0700


    Test suite: completely omit 127/8 IPs
---
 test/runtest |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/test/runtest b/test/runtest
index a62cd15..bfc02ed 100755
--- a/test/runtest
+++ b/test/runtest
@@ -2761,7 +2761,7 @@ while (($parm_ipv4 eq "" || $parm_ipv6 eq "") && ($_ = <IFCONFIG>))
       $_ =~ /^\s*inet(?:\saddr)?:?\s?(\d+\.\d+\.\d+\.\d+)\s/i)
     {
     $ip = $1;
-    next if ($ip eq "127.0.0.1");
+    next if ($ip =~ /^127\./);
     $parm_ipv4 = $ip;
     }