Browse code

improve float collision logging

Extend the log message printed when an instance floats to an address
already taken by another instance with the same certificate. The updated
message now includes the instance being closed, the reason it's being
closed, and the new instance taking over that address.

Change-Id: I217cfb319b85fd75a88f7d4d50c374d28771df28
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250718191702.9451-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32226.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>

Ralf Lici authored on 2025/07/19 04:16:56
Showing 1 changed files
... ...
@@ -3263,7 +3263,11 @@ multi_process_float(struct multi_context *m, struct multi_instance *mi,
3263 3263
                 mroute_addr_print(&mi->real, &gc));
3264 3264
             goto done;
3265 3265
         }
3266
-        msg(D_MULTI_MEDIUM, "closing instance %s", multi_instance_string(ex_mi, false, &gc));
3266
+
3267
+        msg(D_MULTI_LOW, "closing instance %s due to float collision with %s "
3268
+            "using the same certificate",
3269
+            multi_instance_string(ex_mi, false, &gc),
3270
+            multi_instance_string(mi, false, &gc));
3267 3271
         multi_close_instance(m, ex_mi, false);
3268 3272
     }
3269 3273