vali 6 年 前
コミット
a4cb249b1e

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

@@ -115,7 +115,9 @@ class Events
         }
         unset($advertisement);
 
-        self::$redis->hset(self::WEBSOCKALLUSER, $client_id, json_encode(array_merge($_SERVER, ['time' => date('H:i:s')])));
+        $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])));
     }
 
     /**