mirror of
https://github.com/jwhited/wgsd.git
synced 2025-01-18 22:09:34 +08:00
update import paths to support coredns v1.8.0
This commit is contained in:
parent
3876977f81
commit
dfd8346f69
@ -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
6
go.mod
@ -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
|
||||||
)
|
)
|
||||||
|
2
setup.go
2
setup.go
@ -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"
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user