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!",
|
"nodes-responded": "%1 nodes responded within %2ms!",
|
||||||
"host": "host",
|
"host": "host",
|
||||||
"pid": "pid",
|
"pid": "pid",
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ infoController.get = function (req, res) {
|
|||||||
port: nconf.get('port'),
|
port: nconf.get('port'),
|
||||||
nodeCount: data.length,
|
nodeCount: data.length,
|
||||||
timeout: timeoutMS,
|
timeout: timeoutMS,
|
||||||
|
ip: req.ip,
|
||||||
});
|
});
|
||||||
}, timeoutMS);
|
}, timeoutMS);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<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>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|||||||
Reference in New Issue
Block a user