mirror of
https://github.com/jwhited/wgsd.git
synced 2025-11-26 21:35:34 +08:00
add configuration support for self overrides
This commit is contained in:
committed by
Jordan Whited
parent
6f78170fbe
commit
77622af207
8
wgsd.go
8
wgsd.go
@@ -16,7 +16,11 @@ import (
|
||||
)
|
||||
|
||||
// coredns plugin-specific logger
|
||||
var logger = clog.NewWithPlugin("wgsd")
|
||||
var logger = clog.NewWithPlugin(pluginName)
|
||||
|
||||
const (
|
||||
pluginName = "wgsd"
|
||||
)
|
||||
|
||||
// WGSD is a CoreDNS plugin that provides WireGuard peer information via DNS-SD
|
||||
// semantics. WGSD implements the plugin.Handler interface.
|
||||
@@ -300,5 +304,5 @@ func soa(zone string) dns.RR {
|
||||
}
|
||||
|
||||
func (p *WGSD) Name() string {
|
||||
return "wgsd"
|
||||
return pluginName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user