update import paths to support coredns v1.8.0

This commit is contained in:
Jordan Whited 2020-11-24 14:59:59 -08:00 committed by Jordan Whited
parent 3876977f81
commit dfd8346f69
5 changed files with 446 additions and 217 deletions

View File

@ -4,6 +4,13 @@
See [this blog post](https://www.jordanwhited.com/posts/wireguard-endpoint-discovery-nat-traversal/) for a deep dive on the underlying techniques and development thought. See [this blog post](https://www.jordanwhited.com/posts/wireguard-endpoint-discovery-nat-traversal/) for a deep dive on the underlying techniques and development thought.
## Installation ## Installation
Binary releases are available [here](https://github.com/jwhited/wgsd/releases).
Each release contains 2 binaries:
* `coredns` - CoreDNS server with all the "internal" plugins + `wgsd`
* `wgsd-client` - A sample client
## Building from source
External CoreDNS plugins can be enabled in one of two ways: External CoreDNS plugins can be enabled in one of two ways:
1. [Build with compile-time configuration file](https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/#build-with-compile-time-configuration-file) 1. [Build with compile-time configuration file](https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/#build-with-compile-time-configuration-file)
@ -86,4 +93,4 @@ syKB97XhGnvC+kynh2KqQJPXoOoOpx/HmpMRTc+r4js=
## TODOs ## TODOs
- [x] unit tests - [x] unit tests
- [ ] SOA record support - [ ] SOA record support
- [ ] CI & release binaries - [x] CI & release binaries

6
go.mod
View File

@ -3,8 +3,8 @@ module github.com/jwhited/wgsd
go 1.14 go 1.14
require ( require (
github.com/caddyserver/caddy v1.0.5 github.com/coredns/caddy v1.1.0
github.com/coredns/coredns v1.6.9 github.com/coredns/coredns v1.8.0
github.com/miekg/dns v1.1.29 github.com/miekg/dns v1.1.34
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20200511024508-91d9787b944f golang.zx2c4.com/wireguard/wgctrl v0.0.0-20200511024508-91d9787b944f
) )

644
go.sum

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ package wgsd
import ( import (
"fmt" "fmt"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/miekg/dns" "github.com/miekg/dns"

View File

@ -3,7 +3,7 @@ package wgsd
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {