]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/send-announce.cc
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / send-announce.cc
index 95a4e6bf672bd28dae687866f3a500d35d4ee943..d7ac4fd619fcadc5ed351a79ce02fd5ce0f3d911 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -92,7 +92,7 @@ send_announce(const ipcache_addrs *ia, const Dns::LookupDetails &, void *)
         }
     }
 
-    Ip::Address S = ia->in_addrs[0];
+    Ip::Address S = ia->current();
     S.port(port);
     assert(Comm::IsConnOpen(icpOutgoingConn));