xiang 6 년 전
부모
커밋
ab352f3b3e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      vendor/GatewayWorker_linux/GatewayWorker/Applications/whisper/start_gateway.php

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

@@ -91,7 +91,8 @@ $gateway->onConnect = function ($connection) {
         $_SESSION['remotport'] = $connection->getRemotePort();
         //cdn处理
         $ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
-        if (isset($ips[0])  && $ips[0]) { } else {
+
+        if (isset($ips[0])  && $ips[0]) {
             $_SESSION['remotip'] = $ips[0];
         }
         //cdn处理