diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-12-18 16:32:22 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-12-18 16:32:22 +0100 |
commit | 42c462c3351af36b2bd57e797fdfc7059b53d101 (patch) | |
tree | acc749e225f3dd651226f1cfe82b3f0f2c777005 /etc/inc/upgrade_config.inc | |
parent | ab55eb1d9b0bcf0f1bb4def1cafc0fa6918b144a (diff) | |
download | pfsense-42c462c3351af36b2bd57e797fdfc7059b53d101.zip pfsense-42c462c3351af36b2bd57e797fdfc7059b53d101.tar.gz |
Make sure that we mark the wan interface as the default gateway on upgrades
Diffstat (limited to 'etc/inc/upgrade_config.inc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index b39afa3..694f0a3 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -767,6 +767,10 @@ function upgrade_042_to_043() { $config['gateways']['gateway_item'][$i]['gateway'] = $config['interfaces'][$ifname]['gateway']; $config['gateways']['gateway_item'][$i]['interface'] = $ifname; $config['gateways']['gateway_item'][$i]['name'] = strtoupper($ifname) ."_GW"; + /* add default gateway bit for wan on upgrade */ + if($ifname == "wan") { + $config['gateways']['gateway_item'][$i]['defaultgw'] = true; + } if(is_ipaddr($config['interfaces'][$ifname]['use_rrd_gateway'])) { $config['gateways']['gateway_item'][$i]['monitor'] = $config['interfaces'][$ifname]['use_rrd_gateway']; unset($config['interfaces'][$ifname]['use_rrd_gateway']); |