mirror of
				https://github.com/jwhited/wgsd.git
				synced 2025-10-30 08:25:34 +08:00 
			
		
		
		
	update import paths to support coredns v1.8.0
This commit is contained in:
		
				
					committed by
					
						 Jordan Whited
						Jordan Whited
					
				
			
			
				
	
			
			
			
						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. | ||||
|  | ||||
| ## 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: | ||||
|  | ||||
| 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 | ||||
| - [x] unit tests | ||||
| - [ ] 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 | ||||
|  | ||||
| require ( | ||||
| 	github.com/caddyserver/caddy v1.0.5 | ||||
| 	github.com/coredns/coredns v1.6.9 | ||||
| 	github.com/miekg/dns v1.1.29 | ||||
| 	github.com/coredns/caddy v1.1.0 | ||||
| 	github.com/coredns/coredns v1.8.0 | ||||
| 	github.com/miekg/dns v1.1.34 | ||||
| 	golang.zx2c4.com/wireguard/wgctrl v0.0.0-20200511024508-91d9787b944f | ||||
| ) | ||||
|   | ||||
							
								
								
									
										2
									
								
								setup.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.go
									
									
									
									
									
								
							| @@ -3,7 +3,7 @@ package wgsd | ||||
| import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/caddyserver/caddy" | ||||
| 	"github.com/coredns/caddy" | ||||
| 	"github.com/coredns/coredns/core/dnsserver" | ||||
| 	"github.com/coredns/coredns/plugin" | ||||
| 	"github.com/miekg/dns" | ||||
|   | ||||
| @@ -3,7 +3,7 @@ package wgsd | ||||
| import ( | ||||
| 	"testing" | ||||
|  | ||||
| 	"github.com/caddyserver/caddy" | ||||
| 	"github.com/coredns/caddy" | ||||
| ) | ||||
|  | ||||
| func TestSetup(t *testing.T) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user