diff options
Diffstat (limited to 'att script/3 (v6 DDoS)/code/辅助权威服务器/plugin/register.go')
| -rw-r--r-- | att script/3 (v6 DDoS)/code/辅助权威服务器/plugin/register.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/att script/3 (v6 DDoS)/code/辅助权威服务器/plugin/register.go b/att script/3 (v6 DDoS)/code/辅助权威服务器/plugin/register.go new file mode 100644 index 0000000..b3b7a14 --- /dev/null +++ b/att script/3 (v6 DDoS)/code/辅助权威服务器/plugin/register.go @@ -0,0 +1,19 @@ +package plugin + +import "github.com/coredns/caddy" + +// Register registers your plugin with OhmyDNS2 and allows it to be called when the server is running. +func Register(name string, action caddy.SetupFunc) { + caddy.RegisterPlugin(name, caddy.Plugin{ + ServerType: "dns", + Action: action, + }) +} + +// ProbeRegister registers your plugin with OhmyDNS2 and allows it to be called when the prober is running. +func ProbeRegister(name string, action caddy.SetupFunc) { + caddy.RegisterPlugin(name, caddy.Plugin{ + ServerType: "dnsprober", + Action: action, + }) +} |
