diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-02-03 09:01:30 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-02-03 09:01:30 +0100 |
commit | 6376913c3e85a923e32d5f4441cb768e28c3af8e (patch) | |
tree | 07ec772c077ed5d06f51cc3331eca7066d3fc4c9 /etc | |
parent | 396243e9b5dd4ea6a0eb0d59adaaf96782e1d5e2 (diff) | |
parent | 847e5e8257b58906a0d12ce48275cae7162aab47 (diff) | |
download | pfsense-6376913c3e85a923e32d5f4441cb768e28c3af8e.zip pfsense-6376913c3e85a923e32d5f4441cb768e28c3af8e.tar.gz |
Merge remote branch 'upstream/master'
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/captiveportal.inc | 9 | ||||
-rw-r--r-- | etc/inc/certs.inc | 4 | ||||
-rwxr-xr-x | etc/rc.filter_synchronize | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 3d4b61a..de1c09e 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -498,6 +498,7 @@ function captiveportal_init_webgui() { $res = mwexec("/usr/local/sbin/lighttpd -f {$g['varetc_path']}/lighty-CaptivePortal-SSL.conf"); } +/* reinit will disconnect all users, be careful! */ function captiveportal_init_rules($reinit = false) { global $config, $g; @@ -1077,10 +1078,10 @@ function setup_dnsfilter_entries() { $cp_filterdns_conf = ""; if (is_array($config['captiveportal']['allowedhostname'])) { foreach ($config['captiveportal']['allowedhostname'] as $hostnameent) { - $cp_filterdns_conf .= "ipfw $hostnameent 3 '/etc/rc.captiveportal_configure'\n"; - $cp_filterdns_conf .= "ipfw $hostnameent 4 '/etc/rc.captiveportal_configure'\n"; - $cp_filterdns_conf .= "ipfw $hostnameent 7 '/etc/rc.captiveportal_configure'\n"; - $cp_filterdns_conf .= "ipfw $hostnameent 8 '/etc/rc.captiveportal_configure'\n"; + $cp_filterdns_conf .= "ipfw {$hostnameent['hostname']} 3 '/etc/rc.captiveportal_configure'\n"; + $cp_filterdns_conf .= "ipfw {$hostnameent['hostname']} 4 '/etc/rc.captiveportal_configure'\n"; + $cp_filterdns_conf .= "ipfw {$hostnameent['hostname']} 7 '/etc/rc.captiveportal_configure'\n"; + $cp_filterdns_conf .= "ipfw {$hostnameent['hostname']} 8 '/etc/rc.captiveportal_configure'\n"; } } file_put_contents($cp_filterdns_filename, $cp_filterdns_conf); diff --git a/etc/inc/certs.inc b/etc/inc/certs.inc index 7d19045..cc61d9b 100644 --- a/etc/inc/certs.inc +++ b/etc/inc/certs.inc @@ -90,12 +90,12 @@ function & lookup_crl($refid) { function ca_chain_array(& $cert) { if($cert['caref']) { $chain = array(); - $crt =& lookup_ca($cert['caref']); + $crt = lookup_ca($cert['caref']); $chain[] = $crt; while ($crt) { $caref = $crt['caref']; if($caref) - $crt =& lookup_ca($caref); + $crt = lookup_ca($caref); else $crt = false; if($crt) diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize index 304d76c..6a282cc 100755 --- a/etc/rc.filter_synchronize +++ b/etc/rc.filter_synchronize @@ -55,7 +55,7 @@ function backup_vip_config_section() { $temp = array(); $temp['vip'] = array(); foreach($config['virtualip']['vip'] as $section) { - if($section['mode'] == "proxyarp" || $section['mode'] == "ipalias") + if(($section['mode'] == "proxyarp" || $section['mode'] == "ipalias") && substr($section['interface'],0,3) != "vip") continue; if($section['advskew'] <> "") { $section_val = intval($section['advskew']); |