diff options
author | Ermal <eri@pfsense.org> | 2010-03-18 17:38:23 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-18 17:38:23 +0000 |
commit | f9fa5d109ee4606dcc8c900fc2496e9e948ea4b5 (patch) | |
tree | b34f1b99909d3b93fd14ec3e32c581298fd57bf8 /usr/local/www/wizards/openvpn_wizard.inc | |
parent | 979fb4197873364a1d12cee8d694ebdbb3f0cda3 (diff) | |
download | pfsense-f9fa5d109ee4606dcc8c900fc2496e9e948ea4b5.zip pfsense-f9fa5d109ee4606dcc8c900fc2496e9e948ea4b5.tar.gz |
Add some descriptions. Default to local port 1194 when no other server is configured.
Diffstat (limited to 'usr/local/www/wizards/openvpn_wizard.inc')
-rw-r--r-- | usr/local/www/wizards/openvpn_wizard.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc index 4c342ba..2e01e6a 100644 --- a/usr/local/www/wizards/openvpn_wizard.inc +++ b/usr/local/www/wizards/openvpn_wizard.inc @@ -261,6 +261,9 @@ function step10_stepbeforeformdisplay() { $opt['value'] = $type; $pkg['step'][$stepid]['fields']['field'][$idx]['options']['option'][] = $opt; } + } else if ($field['name'] == "localport") { + if (count($config['openvpn']['openvpn-server']) < 1) + $pkg['step'][$stepid]['fields']['field'][$idx]['value'] = 1194; } } } |