From c38764dc0494463b06f70c7ef8e249629a922134 Mon Sep 17 00:00:00 2001 From: "Dmitriy K." Date: Wed, 20 Aug 2014 16:50:56 +0400 Subject: fix #3515 --- etc/inc/openvpn.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc') diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 6ac92fa..c7d918c 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -350,6 +350,9 @@ function openvpn_add_dhcpopts(& $settings, & $conf) { if (!empty($settings['dns_server4'])) $conf .= "push \"dhcp-option DNS {$settings['dns_server4']}\"\n"; + if (!empty($settings['push_register_dns'])) + $conf .= "push \"register-dns\"\n"; + if (!empty($settings['ntp_server1'])) $conf .= "push \"dhcp-option NTP {$settings['ntp_server1']}\"\n"; if (!empty($settings['ntp_server2'])) -- cgit v1.1