diff options
author | jim-p <jimp@pfsense.org> | 2011-07-01 16:46:09 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-07-01 16:46:09 -0400 |
commit | a9404381eb0ec87ffa4c02c8e3902eb9697083f0 (patch) | |
tree | cc9f407b5441b3a8ad03e183cc3fa9d7e62bc84e /etc/inc | |
parent | 0fcaf4f2723c7defa1f8cd13ac3ba63c73a9d77d (diff) | |
download | pfsense-a9404381eb0ec87ffa4c02c8e3902eb9697083f0.zip pfsense-a9404381eb0ec87ffa4c02c8e3902eb9697083f0.tar.gz |
If available, also track the IP used by a user making a config change.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.lib.inc | 2 |
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(); |