fix crash when starting http3 server
This commit is contained in:
1 parent
818463260f
commit
90453838a1
3 files changed
+4
-2
No files matched your search
@@ -145,7 +145,7 @@ func NewHTTP3Server(addr string, quicConfig *quic.Config, opts ...ServerOption)
|
||||
func (s *Server) ListenAndServe() error {
|
||||
if s.http3Server != nil {
|
||||
network := "udp"
|
||||
if xnet.IsIPv4(s.httpServer.Addr) {
|
||||
if xnet.IsIPv4(s.http3Server.Addr) {
|
||||
network = "udp4"
|
||||
}
|
||||
addr, err := net.ResolveUDPAddr(network, s.http3Server.Addr)
|
||||
|
||||
Reference in new issue
Block a user