mirror of
https://github.com/coredns/coredns.git
synced 2026-10-09 12:05:22 -04:00
core/dnsserver: support explicit registration for embedded hosts (#8525)
* core/dnsserver: test host-plugin embedding with forward Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com> * core/dnsserver: add a directive setter for embedded hosts Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com> * core/dnsserver: support explicit server registration for embedded hosts Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com> --------- Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
9
core/dnsserver/register_auto.go
Normal file
9
core/dnsserver/register_auto.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build !coredns_manual_registration
|
||||
|
||||
package dnsserver
|
||||
|
||||
func init() {
|
||||
if err := Register(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user