summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-09-11 08:38:52 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-09-11 08:38:52 -0300
commit4889b4c0c50341036aa412de3d66ed2cdc4392ed (patch)
tree4ecd6133ab56162dcf69cd1c065e8c0a90cdaffa /etc
parentb7063ed37a3729ad2b1ab0e3f7f30eeb35daffd4 (diff)
parentc38764dc0494463b06f70c7ef8e249629a922134 (diff)
downloadpfsense-4889b4c0c50341036aa412de3d66ed2cdc4392ed.zip
pfsense-4889b4c0c50341036aa412de3d66ed2cdc4392ed.tar.gz
Merge pull request #1260 from DasTestament/master
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/openvpn.inc3
1 files changed, 3 insertions, 0 deletions
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']))
OpenPOWER on IntegriCloud