mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-09 18:59:06 +08:00
Chore: use correctly vmess http2 default host
This commit is contained in:
parent
d4fbad4ed7
commit
d8a908f507
@ -273,7 +273,7 @@ func NewVmess(option VmessOption) (*Vmess, error) {
|
||||
switch option.Network {
|
||||
case "h2":
|
||||
if len(option.HTTP2Opts.Host) == 0 {
|
||||
option.HTTP2Opts.Host = append(option.HTTP2Opts.Host, option.Server)
|
||||
option.HTTP2Opts.Host = append(option.HTTP2Opts.Host, "www.example.com")
|
||||
}
|
||||
case "grpc":
|
||||
dialFn := func(network, addr string) (net.Conn, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user