Skip to content

Commit

Permalink
feat(h2): add utls support
Browse files Browse the repository at this point in the history
  • Loading branch information
mzz2017 committed Jul 20, 2023
1 parent 9473955 commit 3f7859f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion component/outbound/dialer/v2ray/v2ray.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ func (s *V2Ray) Dialer(option *dialer.GlobalOption, iOption dialer.InstanceOptio
Host: net.JoinHostPort(s.Add, s.Port),
}
if s.SNI != "" {
u.RawQuery = url.Values{"sni": []string{sni}, "allowInsecure": []string{common.BoolToString(s.AllowInsecure)}}.Encode()
u.RawQuery = url.Values{
"sni": []string{sni},
"allowInsecure": []string{common.BoolToString(s.AllowInsecure)},
"utlsImitate": []string{option.UtlsImitate},
}.Encode()
}
d, err = http.NewHTTPProxy(&u, direct.SymmetricDirect)
if err != nil {
Expand Down

0 comments on commit 3f7859f

Please sign in to comment.