Browse Source

vmess: sniffing opt

Tokumeikoi 4 năm trước cách đây
mục cha
commit
c9357b602a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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)