diff options
author | jim-p <jimp@pfsense.org> | 2013-08-06 08:39:58 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-08-06 10:05:04 -0400 |
commit | 8ab8d853727e054c4f82d7a79e9761e17afaec09 (patch) | |
tree | e74ae17e708edcbddfab43e956c58f62ff38c476 /etc/inc/vpn.inc | |
parent | 71549fa70975d30cf2fdb0275da8744b40c8ee49 (diff) | |
download | pfsense-8ab8d853727e054c4f82d7a79e9761e17afaec09.zip pfsense-8ab8d853727e054c4f82d7a79e9761e17afaec09.tar.gz |
Don't print this message for a mobile IPsec setup. It's normal for it to not have an endpoint, and not worth spamming the log about.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 1a42256..180ac19 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -1837,7 +1837,10 @@ function reload_tunnel_spd_policy($phase1, $phase2, $old_phase1, $old_phase2) { } else { add_hostname_to_watch($phase1['remote-gateway']); } - if (!is_ipaddr($rgip)) { + if (isset($phase1['mobile'])) { + /* Don't log anything here, it's normal and we should skip it. */ + return false; + } elseif (!is_ipaddr($rgip)) { log_error("Could not determine VPN endpoint for '{$phase1['descr']}'"); return false; } |