diff --git a/app/Services/ServerService.php b/app/Services/ServerService.php index f4d99fcb..4c9241ff 100644 --- a/app/Services/ServerService.php +++ b/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)