mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: add user ip to admin/dev/info
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"you-are-on": "Info - You are on <strong>%1:%2</strong>",
|
||||
"you-are-on": "You are on <strong>%1:%2</strong>",
|
||||
"ip": "IP <strong>%1</strong>",
|
||||
"nodes-responded": "%1 nodes responded within %2ms!",
|
||||
"host": "host",
|
||||
"pid": "pid",
|
||||
|
||||
@@ -35,6 +35,7 @@ infoController.get = function (req, res) {
|
||||
port: nconf.get('port'),
|
||||
nodeCount: data.length,
|
||||
timeout: timeoutMS,
|
||||
ip: req.ip,
|
||||
});
|
||||
}, timeoutMS);
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="info">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">[[admin/development/info:you-are-on, {host}, {port}]]</h3>
|
||||
<h3 class="panel-title">[[admin/development/info:you-are-on, {host}, {port}]] • [[admin/development/info:ip, {ip}]]</h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
|
||||
Reference in New Issue
Block a user