diff options
author | smos <seth.mos@dds.nl> | 2011-04-13 09:47:06 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-04-13 09:52:58 +0200 |
commit | c8cc0c1c5adc7c83a1d7e8c1e293d43baf74fdc0 (patch) | |
tree | b51351e5c6e7a6bb8f204377f3cf0fea4325fa06 /etc/inc | |
parent | a93020d544335611e6e083db67ef23fb674139ca (diff) | |
download | pfsense-c8cc0c1c5adc7c83a1d7e8c1e293d43baf74fdc0.zip pfsense-c8cc0c1c5adc7c83a1d7e8c1e293d43baf74fdc0.tar.gz |
Add missing fields for l2tp to define dns and wins servers
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/vpn.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 5ae79b4..8284183 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -1490,9 +1490,12 @@ l2tp_standard: EOD; - if (!empty($l2tpcfg['dns1'])) { + if (is_ipaddr($l2tpcfg['wins'])) { + $mpdconf .= " set ipcp nbns {$l2tpcfg['wins']}\n"; + } + if (is_ipaddr($l2tpcfg['dns1'])) { $mpdconf .= " set ipcp dns " . $l2tpcfg['dns1']; - if (!empty($l2tpcfg['dns2'])) + if (is_ipaddr($l2tpcfg['dns2'])) $mpdconf .= " " . $l2tpcfg['dns2']; $mpdconf .= "\n"; } elseif (isset ($config['dnsmasq']['enable'])) { |