diff options
author | jim-p <jimp@pfsense.org> | 2012-05-30 09:58:08 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-30 10:17:13 -0400 |
commit | 829fd8c1b81e088510bb0831f3c527732b601713 (patch) | |
tree | 562ab61c41eb994cfa19f0d8a7b44f1a4ac42e88 /etc | |
parent | db2243e73ff172be2ba0885e6ddaedb40d26bf59 (diff) | |
download | pfsense-829fd8c1b81e088510bb0831f3c527732b601713.zip pfsense-829fd8c1b81e088510bb0831f3c527732b601713.tar.gz |
Don't display a "mobile" user without a username.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/ipsec.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index fb65efb..005fbde 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -489,7 +489,8 @@ function ipsec_dump_mobile() { $user['remote'] = $linea[2]; $user['logintime'] = $linea[3]; $user['spi'] = $linea[4]; - $mobile[] = $user; + if (!empty($user['username'])) + $mobile[] = $user; } pclose($fd); } |