mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 02:23:16 +08:00
Fix: TLS defaults to true for h2/grpc networks
This commit is contained in:
parent
3b6fc1c496
commit
606e8948c0
@ -367,7 +367,7 @@ func NewVmess(option VmessOption) (*Vmess, error) {
|
||||
switch option.Network {
|
||||
case "h2", "grpc":
|
||||
if !option.TLS {
|
||||
return nil, fmt.Errorf("TLS must be true with h2/grpc network")
|
||||
option.TLS = true
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user