diff options
author | jim-p <jimp@pfsense.org> | 2010-11-02 15:14:11 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-11-02 15:14:11 -0400 |
commit | a6607b5fe0b480074b458480722326368f51c125 (patch) | |
tree | cbd4b24c8252c6edc2cd7c6cfc925f65e7387a13 /usr/local | |
parent | f856e762704c09e8508ec237ad12b7ba3825aa0c (diff) | |
download | pfsense-a6607b5fe0b480074b458480722326368f51c125.zip pfsense-a6607b5fe0b480074b458480722326368f51c125.tar.gz |
More VPN log fixes, for consistency. Ticket #912
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_logs_vpn.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php index 5bf0651..36bdb58 100755 --- a/usr/local/www/diag_logs_vpn.php +++ b/usr/local/www/diag_logs_vpn.php @@ -150,9 +150,20 @@ include("head.inc"); <td class="listhdrr"><?=gettext("IP address");?></td> </tr> <?php dump_clog_vpn("/var/log/vpn.log", $nentries); ?> - <?php else: ?> - <?php dump_clog("/var/log/{$vpntype}.log", $nentries); ?> - <?php endif; ?> + <?php else: + switch ($vpntype) { + case 'pptp': + $logname = "pptps"; + break; + case 'poes': + $logname = "poes"; + break; + case 'l2tp': + $logname = "l2tps"; + break; + } + dump_clog("/var/log/{$logname}.log", $nentries); + endif; ?> </table> <br /> <input type="hidden" name="vpntype" id="vpntype" value="<?=$vpntype;?>"> |