Browse Source

vmess: sniffing opt

Tokumeikoi 4 years ago
parent
commit
c9357b602a
1 changed files with 3 additions and 0 deletions
  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)