Handle a v4mapped sender address given us by a proxy. Bug 2855
[exim.git] / test / runtest
index c88a8929ecbd4254c5877dcec7304c3bf42f06a0..4a304a8aa5d8eb0d54831722a49bc8f5f07e378c 100755 (executable)
@@ -792,7 +792,7 @@ RESET_AFTER_EXTRA_LINE_READ:
     }
 
   # Port in host address in spool file output from -Mvh
-  s/^(--?host_address) (.*)\.\d+/$1 $2.9999/;
+  s/^(--?host_address) (.*[:.])\d+$/$1 ${2}9999/;
 
   if ($dynamic_socket and $dynamic_socket->opened and my $port = $dynamic_socket->sockport) {
     s/^Connecting to 127\.0\.0\.1 port \K$port/<dynamic port>/;