summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-18 21:25:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-18 21:25:35 +0000
commitaa9fd9e6133d25918b483d956b04f260d8794b4c (patch)
tree3b6713bbb7a19a47aa86f0fcca1d416cecad2849 /etc
parente26bee1690444bcff55c444bdba27bd9848dae4e (diff)
downloadpfsense-aa9fd9e6133d25918b483d956b04f260d8794b4c.zip
pfsense-aa9fd9e6133d25918b483d956b04f260d8794b4c.tar.gz
override some global configuration parms if they exist
instead of hard coding these checks into the codebase
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 2a5e6e0..8ff12ba 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -207,6 +207,20 @@ function parse_config($parse = false) {
alias_make_table($config);
config_unlock();
+
+ /* override some global configuration parms if they exist
+ * instead of hard coding these checks into the codebase
+ */
+ if($config['pptp']['n_pptp_units'])
+ $g['n_pptp_units'] = $config['pptp']['n_pptp_units'];
+ if($config['pptp']['pptp_subnet'])
+ $g['pptp_subnet'] = $config['pptp']['pptp_subnet'];
+
+ if($config['pppoe']['n_pppoe_units'])
+ $g['n_pppoe_units'] = $config['pppoe']['n_pppoe_units'];
+ if($config['pppoe']['pppoe_subnet'])
+ $g['pppoe_subnet'] = $config['pppoe']['pppoe_subnet'];
+
return $config;
}
OpenPOWER on IntegriCloud