|
@@ -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)
|