summaryrefslogtreecommitdiff
path: root/src/openvpn/tun.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-02-09 16:35:11 +0100
committerJörg Frings-Fürst <debian@jff.email>2022-02-09 16:35:11 +0100
commit9d320b2bf4b83f6e2a3c679a399b88dfe57b879e (patch)
treec2862c0ce46b80f565a18a25fa96145ef59ad0b2 /src/openvpn/tun.c
parent1aff45d6fdfbc63a0256a831a8f8644a84708e9f (diff)
parent8e924e2c919e6fbeae0045b67ac54b9697306d7d (diff)
Update upstream source from tag 'upstream/2.5.5'
Update to upstream version '2.5.5' with Debian dir add1ff02b39ff7fc38c6c53654ab9263533c4f27
Diffstat (limited to 'src/openvpn/tun.c')
-rw-r--r--src/openvpn/tun.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c
index 512ccba..db8fdec 100644
--- a/src/openvpn/tun.c
+++ b/src/openvpn/tun.c
@@ -6388,14 +6388,7 @@ tuntap_dhcp_mask(const struct tuntap *tt, const char *device_guid)
{
if (tt->topology == TOP_SUBNET)
{
- if (tt->options.dhcp_masq_custom_offset)
- {
- ep[2] = dhcp_masq_addr(tt->local, tt->remote_netmask, tt->options.dhcp_masq_offset);
- }
- else
- {
- ep[2] = dhcp_masq_addr(tt->local, tt->remote_netmask, -1);
- }
+ ep[2] = dhcp_masq_addr(tt->local, tt->remote_netmask, tt->options.dhcp_masq_custom_offset ? tt->options.dhcp_masq_offset : 0);
}
else
{