瀏覽代碼

vmess: sniffing opt

Tokumeikoi 4 年之前
父節點
當前提交
c9357b602a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/Services/ServerService.php

+ 3 - 0
app/Services/ServerService.php

@@ -204,6 +204,9 @@ class ServerService
             $protocolObj->outboundTag = 'block';
             array_push($json->routing->rules, $protocolObj);
         }
+        if (empty($domainRules) && empty($protocolRules)) {
+            $json->inbound->sniffing->enable = false;
+        }
     }
 
     private function setTls(Server $server, object $json)