Project

General

Profile

« Previous | Next » 

Revision 3d1a553e

Added by Viktor Gurov about 3 years ago

Captive Portal hostname pipes delete fix. Issue #13193

View differences:

src/etc/inc/captiveportal.inc
2553 2553

  
2554 2554
	init_config_arr(array('captiveportal', $cpzone, 'allowedhostname'));
2555 2555
	foreach ($config['captiveportal'][$cpzone]['allowedhostname'] as $id => $hostnameent) {
2556
		$result = array();
2557
		$pipes = pfSense_pf_cp_get_eth_pipes("{$cpzoneprefix}__allowedhosts/hostname_{$id}");
2556
		$pipes = pfSense_pf_cp_get_eth_pipes("{$cpzoneprefix}_allowedhosts/hostname_{$id}");
2558 2557
		pfSense_pf_cp_flush("{$cpzoneprefix}_allowedhosts/hostname_{$id}", "ether");
2559 2558
		if (!empty($pipes)) {
2560 2559
			captiveportal_pipes_delete($pipes);

Also available in: Unified diff