diff options
-rw-r--r-- | etc/inc/vpn.inc | 4 | ||||
-rwxr-xr-x | usr/local/www/vpn_pptp.php | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 11f7689..053b499 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -645,7 +645,9 @@ EOD; EOD; } - + if (isset($pptpdcfg["wins"])) { + $mpdconf .= " set ipcp nbns {$pptpdcfg['wins']}\n"; + } if (isset($config['dnsmasq']['enable'])) { $mpdconf .= " set ipcp dns " . $config['interfaces']['lan']['ipaddr']; if ($syscfg['dnsserver'][0]) diff --git a/usr/local/www/vpn_pptp.php b/usr/local/www/vpn_pptp.php index e36b0d8..c650877 100755 --- a/usr/local/www/vpn_pptp.php +++ b/usr/local/www/vpn_pptp.php @@ -40,6 +40,7 @@ $pconfig['remoteip'] = $pptpcfg['remoteip']; $pconfig['localip'] = $pptpcfg['localip']; $pconfig['redir'] = $pptpcfg['redir']; $pconfig['mode'] = $pptpcfg['mode']; +$pconfig['wins'] = $pptpcfg['wins']; $pconfig['req128'] = isset($pptpcfg['req128']); $pconfig['radiusenable'] = isset($pptpcfg['radius']['enable']); $pconfig['radacct_enable'] = isset($pptpcfg['radius']['accounting']); @@ -103,6 +104,7 @@ if ($_POST) { $pptpcfg['redir'] = $_POST['redir']; $pptpcfg['localip'] = $_POST['localip']; $pptpcfg['mode'] = $_POST['mode']; + $pptpcfg['wins'] = $_POST['wins']; $pptpcfg['req128'] = $_POST['req128'] ? true : false; $pptpcfg['radius']['enable'] = $_POST['radiusenable'] ? true : false; $pptpcfg['radius']['accounting'] = $_POST['radacct_enable'] ? true : false; @@ -267,6 +269,15 @@ function enable_change(enable_over) { Enter the shared secret that will be used to authenticate to the RADIUS server.</td> </tr> + + </tr> + <tr> + <td width="22%" valign="top" class="vncell">WINS Server</td> + <td width="78%" valign="top" class="vtable"> + <input name="wins" class="formfld" id="wins" size="20" value="<?=htmlspecialchars($pconfig['wins']);?>"> + </td> + </tr> + <tr> <td height="16" colspan="2" valign="top"></td> </tr> |