[exim-dev] [Bug 2855] $sender_host_address doesn't work well…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: admin
Datum:  
To: exim-dev
Betreff: [exim-dev] [Bug 2855] $sender_host_address doesn't work well with hybrid (v4mapped) IPv4 representation
https://bugs.exim.org/show_bug.cgi?id=2855

--- Comment #4 from Heiko Schlittermann <hs@???> ---
possible fix, needs testing:
--- a/src/src/spool_out.c
+++ b/src/src/spool_out.c
@@ -185,7 +185,7 @@ if (sender_helo_name) spool_var_write(fp, US"helo_name",
sender_helo_name);
 if (sender_host_address)
   {
   if (is_tainted(sender_host_address)) putc('-', fp);
-  fprintf(fp, "-host_address %s.%d\n", sender_host_address, sender_host_port);
+  fprintf(fp, "-host_address [%s]:%d\n", sender_host_address,
sender_host_port);
   if (sender_host_name)
     spool_var_write(fp, US"host_name", sender_host_name);
   }


--
You are receiving this mail because:
You are on the CC list for the bug.