Project

General

Profile

« Previous | Next » 

Revision a23ff107

Added by Ermal LUÇI over 11 years ago

Use the default bw specification if configured even for allowed ip and hostname.

View differences:

etc/inc/captiveportal.inc
1011 1011

  
1012 1012
	$rules = "";
1013 1013
	$cp_filterdns_conf = "";
1014
	$enBwup = empty($ipent['bw_up']) ? 0 : intval($ipent['bw_up']);
1015
	$enBwdown = empty($ipent['bw_down']) ? 0 : intval($ipent['bw_down']);
1014
	$enBwup = 0;
1015
	if (!empty($ipent['bw_up']))
1016
		$enBwup = iintval($ipent['bw_up']);
1017
	else if (isset($config['captiveportal'][$cpzone]['bwdefaultup']))
1018
		$enBwup = $config['captiveportal'][$cpzone]['bwdefaultup'];
1019
	$enBwdown = 0;
1020
	if (!empty($ipent['bw_down']))
1021
		$enBwdown = intval($ipent['bw_down']);
1022
	else if (isset($config['captiveportal'][$cpzone]['bwdefaultdn']))
1023
		$enBwdown = $config['captiveportal'][$cpzone]['bwdefaultdn'];
1016 1024

  
1017 1025
	$pipeno = captiveportal_get_next_dn_ruleno();
1018 1026
	$_gb = @pfSense_pipe_action("pipe {$pipeno} config bw {$enBwup}Kbit/s queue 100 buckets 16");

Also available in: Unified diff