Project

General

Profile

« Previous | Next » 

Revision 77ba3449

Added by Marcos M over 1 year ago

Specify specialnet flags for GUI fields. Fix #14845
Store the flags in variables to allow easier future updates.

View differences:

src/usr/local/www/guiconfig.inc
403 403
	return $to_return;
404 404
}
405 405

  
406
function pprint_address($adr) {
406
function pprint_address($adr, $specialnet_flags = []) {
407 407
	// outbound NAT rules use a value of 'any' rather than a key
408 408
	if (isset($adr['any']) || $adr['network'] == 'any') {
409 409
		$padr = "*";
410 410
	} else if ($adr['network']) {
411
		if (get_specialnet($adr['network'])) {
411
		if (get_specialnet($adr['network'], $specialnet_flags)) {
412 412
			$specialnets = get_specialnet();
413 413
			$padr = $specialnets[$adr['network']];
414 414
		} else {

Also available in: Unified diff