summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-03-03 09:22:45 -0500
committerjim-p <jimp@pfsense.org>2011-03-03 09:24:04 -0500
commit6be90004d477bd74c5610ae341aae3ae9fcc9281 (patch)
tree4519e0698da9077a775632a59e5e687f846b27ec /usr/local
parent67b0ed57e87ac81d91feb01a129fd1980ca83e3e (diff)
downloadpfsense-6be90004d477bd74c5610ae341aae3ae9fcc9281.zip
pfsense-6be90004d477bd74c5610ae341aae3ae9fcc9281.tar.gz
Ensure the protocol on the firewall rule from the OpenVPN wizard ends up lower case, or it causes some GUI irregularities. Seen http://forum.pfsense.org/index.php/topic,33865.0.html and elsewhere.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/wizards/openvpn_wizard.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc
index 5af4510..e48cfb3 100644
--- a/usr/local/www/wizards/openvpn_wizard.inc
+++ b/usr/local/www/wizards/openvpn_wizard.inc
@@ -603,7 +603,7 @@ function step12_submitphpaction() {
$rule['destination']['network'] = $server['interface'] . "ip";
$rule['destination']['port'] = $server['local_port'];
$rule['interface'] = $server['interface'];
- $rule['protocol'] = $server['protocol'];
+ $rule['protocol'] = strtolower($server['protocol']);
$rule['type'] = "pass";
$rule['enabled'] = "on";
$config['filter']['rule'][] = $rule;
OpenPOWER on IntegriCloud