Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golang 1.21 error #321

Closed
limbo127 opened this issue Aug 17, 2023 · 3 comments · Fixed by #323
Closed

golang 1.21 error #321

limbo127 opened this issue Aug 17, 2023 · 3 comments · Fixed by #323

Comments

@limbo127
Copy link

hello,
does not compile with golang 1.21
../../dohclient.go:419:35: cannot use udpConn (variable of type *net.UDPConn) as context.Context value in argument to quic.DialEarly: *net.UDPConn does not implement context.Context (missing method Deadline)
../../dohclient.go:419:44: cannot use udpAddr (variable of type *net.UDPAddr) as net.PacketConn value in argument to quic.DialEarly: *net.UDPAddr does not implement net.PacketConn (missing method Close)
../../dohclient.go:419:53: cannot use hostname (variable of type string) as net.Addr value in argument to quic.DialEarly: string does not implement net.Addr (missing method Network)
../../doqlistener.go:79:14: cannot use quic.ListenAddr(s.addr, s.opt.TLSConfig, &quic.Config{}) (value of type *quic.Listener) as quic.Listener value in assignment

Regards,
Nicolas

@limbo127
Copy link
Author

quic need update and seems routedns using old quic function

@folbricht
Copy link
Owner

I updated the library and can now build it with Go 1.21. Can you try out issue-321 to confirm it works? I haven't tested the quic server functionality, though it's probably fine since it only needed a very minor change.

@limbo127
Copy link
Author

limbo127 commented Aug 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants