vali 6 年之前
父節點
當前提交
edf5e4d8fb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      vendor/GatewayWorker_linux/GatewayWorker/Applications/whisper/start_gateway.php

+ 2 - 2
vendor/GatewayWorker_linux/GatewayWorker/Applications/whisper/start_gateway.php

@@ -82,8 +82,8 @@ $gateway->onConnect = function ($connection) {
         $getToken = isset($_GET['apiToken']) ? $_GET['apiToken'] : '';
 
         if ($getToken !== $apiToken) {
-            //$connection->close();
-            //:return;
+            $connection->close();
+            return;
         }
         $_SESSION['remotip'] = $connection->getRemoteIp();
         $_SESSION['remotport'] = $connection->getRemotePort();