diff options
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r-- | etc/inc/openvpn.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index d478c53..9729217 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -737,7 +737,10 @@ function openvpn_resync_csc(& $settings) { $serverip = long2ip32($baselong + 1); $clientip = long2ip32($baselong + 2); /* Because this is being pushed, the order from the client's point of view. */ - $conf .= "ifconfig-push {$clientip} {$serverip}\n"; + if ($settings['dev_mode'] == 'tun') + $conf .= "ifconfig-push {$clientip} {$serverip}\n"; + else + $conf .= "ifconfig-push {$clientip} {$mask}\n"; } openvpn_add_dhcpopts($settings, $conf); |