summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-07-01 16:46:09 -0400
committerjim-p <jimp@pfsense.org>2011-07-01 16:46:09 -0400
commita9404381eb0ec87ffa4c02c8e3902eb9697083f0 (patch)
treecc9f407b5441b3a8ad03e183cc3fa9d7e62bc84e /etc
parent0fcaf4f2723c7defa1f8cd13ac3ba63c73a9d77d (diff)
downloadpfsense-a9404381eb0ec87ffa4c02c8e3902eb9697083f0.zip
pfsense-a9404381eb0ec87ffa4c02c8e3902eb9697083f0.tar.gz
If available, also track the IP used by a user making a config change.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.lib.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index 575a661..ecb2ca1 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -495,6 +495,8 @@ function write_config($desc="Unknown", $backup = true) {
*/
$username = empty($_SESSION["Username"]) ? "(system)" : $_SESSION['Username'];
+ if ($_SERVER['REMOTE_ADDR'])
+ $username .= '@' . $_SERVER['REMOTE_ADDR'];
if($backup)
backup_config();
OpenPOWER on IntegriCloud