mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Convert ip6 to ip4 in InfoCommand
This commit is contained in:
parent
0573d4469e
commit
cdd2385b08
@ -48,7 +48,7 @@ public function __construct(\chat\system\command\CommandHandler $commandHandler)
|
|||||||
if (WCF::getSession()->getPermission('admin.user.canViewIpAddress')) {
|
if (WCF::getSession()->getPermission('admin.user.canViewIpAddress')) {
|
||||||
$session = $this->fetchSession();
|
$session = $this->fetchSession();
|
||||||
if ($session) {
|
if ($session) {
|
||||||
$this->lines[WCF::getLanguage()->get('wcf.user.ipAddress')] = $session->ipAddress;
|
$this->lines[WCF::getLanguage()->get('wcf.user.ipAddress')] = \wcf\util\UserUtil::convertIPv6To4($session->ipAddress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user