vali 6 жил өмнө
parent
commit
75bdd202f2

+ 1 - 3
vendor/GatewayWorker_windows/Applications/whisper/Events.php

@@ -115,9 +115,7 @@ class Events
         }
         unset($advertisement);
 
-        $infos = $_SERVER;
-        unset($infos['GATEWAY_ADDR'], $infos['GATEWAY_PORT']);
-        self::$redis->hset(self::WEBSOCKALLUSER, $client_id, json_encode(array_merge(['time' => date('H:i:s')], $infos)));
+        self::$redis->hset(self::WEBSOCKALLUSER, $client_id, json_encode(['time' => date('H:i:s'), 'ip' => $_SERVER['REMOTE_ADDR'] . ':' . $_SERVER['REMOTE_PORT']]));
     }
 
     /**