Project

General

Profile

Actions

Bug #8290

closed

filter.inc, make filter_expand_alias_array() return consistent results between first and second call.

Added by Pi Ba over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Start date:
01/22/2018
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

filter.inc, make filter_expand_alias_array() return consistent results between first and second call.

Currently the 1st php call to: filter_expand_alias_array('mixed_ip_dns_alias') does not return the fixed IP's but a second call to filter_expand_alias_array('mixed_ip_dns_alias') does.. This is at least 'unexpected'.

This is a problem for haproxy 'sourceip acl' which gets or doesnt get a list of ip's/subnets depending on how the service is started..

"Restart service" leaves the list empty.
While saving a regular configuration change the lists do get filled.
When the alias consists of both ip's/subnets and hostnames the ip's/subnets are expected to be returned with the dns items filtered out..

https://github.com/pfsense/pfsense/pull/3903

Actions

Also available in: Atom PDF