diff options
author | Phil Davis <phil.davis@inf.org> | 2017-01-22 14:42:45 +0545 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-01-23 18:21:54 -0200 |
commit | 5e82a83a20447babd6dad6462022ee68c45b1a4e (patch) | |
tree | 5a6179e963135f1f6f94573dc87f2fad17d3a523 /src | |
parent | c528a112f9ca576b6d39ff03ca8e7e11b86c4c84 (diff) | |
download | pfsense-5e82a83a20447babd6dad6462022ee68c45b1a4e.zip pfsense-5e82a83a20447babd6dad6462022ee68c45b1a4e.tar.gz |
Force compress for where_is_ipaddr_configured check_localip
(cherry picked from commit f0b1358dfe520ad3b771127127daed970ba2c0a0)
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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']; |