diff options
author | Pierre POMES <pierre.pomes@interface-tech.com> | 2010-12-06 20:26:58 -0500 |
---|---|---|
committer | Pierre POMES <pierre.pomes@interface-tech.com> | 2010-12-06 20:26:58 -0500 |
commit | dd62256f08c00813b5618c2cb5189f8abcfa3337 (patch) | |
tree | 7c904443c1d8f13f986996ed9a22243746880cf5 /etc/inc | |
parent | 8d5b8c2033315fb49c2e259cce477998b0eeb2aa (diff) | |
download | pfsense-dd62256f08c00813b5618c2cb5189f8abcfa3337.zip pfsense-dd62256f08c00813b5618c2cb5189f8abcfa3337.tar.gz |
Fix vip descriptions in openvpn and ipsec screens. Ticket #1042
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 9766dd9..ae4efc6 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3538,4 +3538,15 @@ EOD; unlink_if_exists($cron_file); } +function get_vip_descr($ipaddress) { + global $config; + + foreach ($config['virtualip']['vip'] as $vip) { + if ($vip['subnet'] == $ipaddress) { + return ($vip['descr']); + } + } + return ""; +} + ?> |