Hi all,

This is something I noticed recently with potential connection
interruptions which could occur which the original older code checked for!

https://github.com/OpenVPN/openvpn/pull/910

There was an update pushed earlier this year which undid some important
logic in terms of learning/unlearning the ifconfig IP address. The older
original code would check that the new/old IPs don't match first before
performing that logic. I believe this was important and correct because it
could cause connection interruptions during the learn/unlearn process if
the IP address has stayed the same!

```
commit 5e4c9a69eaf9d32e85613bd71ed219fdbb062d34
Author: Marco Baffo <[email protected]>
Date:   Fri Oct 17 22:19:12 2025 +0200
...
-update_vhash(struct multi_context *m, struct multi_instance *mi, const
char *old_ip, const char *old_ipv6)
+update_vhash(struct multi_context *m, struct multi_instance *mi, const
char *new_ip, const char *new_ipv6)
 {
-    struct in_addr addr;
-    struct in6_addr new_ipv6;
-
-    if ((mi->context.options.ifconfig_local && (!old_ip || strcmp(old_ip,
mi->context.options.ifconfig_local)))
-        && inet_pton(AF_INET, mi->context.options.ifconfig_local, &addr)
== 1)
+    if (new_ip)
     {
```

Thanks,
Jon C
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to