From 5e82a83a20447babd6dad6462022ee68c45b1a4e Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sun, 22 Jan 2017 14:42:45 +0545 Subject: Force compress for where_is_ipaddr_configured check_localip (cherry picked from commit f0b1358dfe520ad3b771127127daed970ba2c0a0) --- src/etc/inc/pfsense-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/etc/inc/pfsense-utils.inc') diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index b0a54e6..b0ee605 100644 --- a/src/etc/inc/pfsense-utils.inc +++ b/src/etc/inc/pfsense-utils.inc @@ -3042,7 +3042,7 @@ function where_is_ipaddr_configured($ipaddr, $ignore_if = "", $check_localip = f } if ($check_localip) { - if (!is_array($config['l2tp']) && !empty($config['l2tp']['localip']) && (strcasecmp($ipaddr, $config['l2tp']['localip']) == 0)) { + if (!is_array($config['l2tp']) && !empty($config['l2tp']['localip']) && (strcasecmp($ipaddr, text_to_compressed_ip6($config['l2tp']['localip'])) == 0)) { $where_entry = array(); $where_entry['if'] = 'l2tp'; $where_entry['ip_or_subnet'] = $config['l2tp']['localip']; -- cgit v1.1