---
src/openvpn/tun.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c
index 80eaa2c4..f5823516 100644
--- a/src/openvpn/tun.c
+++ b/src/openvpn/tun.c
@@ -965,13 +965,14 @@ do_ifconfig(struct tuntap *tt,
else
{
argv_printf(&argv,
- "%s addr add dev %s %s/%d broadcast %s",
+ "%s addr add dev %s %s/%d",
iproute_path,
actual,
ifconfig_local,
- netmask_to_netbits2(tt->remote_netmask),
- ifconfig_broadcast
+ netmask_to_netbits2(tt->remote_netmask)
);
+ if (netmask_to_netbits2(tt->remote_netmask) < 31)
+ argv_printf_cat(&argv, " broadcast %s", ifconfig_broadcast);
argv_msg(M_INFO, &argv);
openvpn_execve_check(&argv, es, S_FATAL, "Linux ip addr add
failed");
}
--
2.23.0
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel