Set next protos in quic
This commit is contained in:
parent
9b1cb4ef0e
commit
dab0e9e9bc
@ -109,6 +109,7 @@ func (q *quicTransport) Dial(addr string, opts ...transport.DialOption) (transpo
|
||||
if config == nil {
|
||||
config = &tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
NextProtos: []string{"http/1.1"},
|
||||
}
|
||||
}
|
||||
s, err := quic.DialAddr(addr, config, nil)
|
||||
@ -150,6 +151,7 @@ func (q *quicTransport) Listen(addr string, opts ...transport.ListenOption) (tra
|
||||
}
|
||||
config = &tls.Config{
|
||||
Certificates: []tls.Certificate{cfg},
|
||||
NextProtos: []string{"http/1.1"},
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user