summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-01-22 14:42:45 +0545
committerPhil Davis <phil.davis@inf.org>2017-01-22 14:42:45 +0545
commitf0b1358dfe520ad3b771127127daed970ba2c0a0 (patch)
tree94b13dd8a3b860f6446fe45378b3b5df2e1f99bc /src/etc/inc/pfsense-utils.inc
parentcde28bfa0e11f268485ec1f6ccb73a3a2f66448f (diff)
downloadpfsense-f0b1358dfe520ad3b771127127daed970ba2c0a0.zip
pfsense-f0b1358dfe520ad3b771127127daed970ba2c0a0.tar.gz
Force compress for where_is_ipaddr_configured check_localip
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-rw-r--r--src/etc/inc/pfsense-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc
index d32cfb3..2d090ef 100644
--- a/src/etc/inc/pfsense-utils.inc
+++ b/src/etc/inc/pfsense-utils.inc
@@ -2790,7 +2790,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'];
OpenPOWER on IntegriCloud