-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Use and vendor golang.org/x/net/ipv4 and golang.org/x/net/ipv6 #594
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
Conversation
5cf386a
to
4778d7a
Compare
Apparently travis-ci doesn't have any IPv6 support so the test for |
Codecov Report
@@ Coverage Diff @@
## master #594 +/- ##
==========================================
- Coverage 57.79% 57.73% -0.06%
==========================================
Files 37 36 -1
Lines 10062 9976 -86
==========================================
- Hits 5815 5760 -55
+ Misses 3187 3168 -19
+ Partials 1060 1048 -12
Continue to review full report at Codecov.
|
4778d7a
to
4b08db7
Compare
4b08db7
to
749fc07
Compare
We don't have a way to test for IPv6 or IPv4 in |
[ Quoting <notifications@github.com> in "Re: [miekg/dns] Use and vendor gola..." ]
Apparently travis-ci doesn't have any IPv6 support so the test for `[::1]:0` will log and not be run. Running that locally for me works but I'm not sure how to get that tested via travis-ci.
No, you can't with travis :-(
|
Is everything looking Ok from your side? If so; I will merge this. |
I'm going ahead with this. CoreDNS 1.0.0 will be announced today and 1.0.1 dev has started, meaning plenty of time for me to see if this works or not. |
@miekg yes we've been running this in production with CoreDNS since the 30th and it seems to be working fine. Sorry, somehow I missed your comment. |
@fastest963 if you are running CoreDNS in production would you mind adding yourself to https://github.com/coredns/coredns/blob/master/ADOPTERS.md ? It will help as we move toward incubation status in the CNCF. |
Removed the
internal/socket
and usedgolang.org/x/net/ipv4
andgolang.org/x/net/ipv6
adding them with dep to the vendor folder.Additionally, I removed the
udp_linux.go
in favor of using ipv4/ipv6 for cross-platform support. We don't quite have Windows support since that will be coming with go 1.10 (and then we can use build flags to excludeudp_windows.go
on < 1.10) and is tracked in #571.I tried to add tests to test as much of the OOB functionality as possible. I will be testing in production with a newer build of CoreDNS to verify everything on Linux.