mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 13:47:39 +03:00
logging enhancement CLOAK (#742)
This commit is contained in:
parent
c3e29c2a60
commit
d1a337f64b
2 changed files with 3 additions and 0 deletions
|
@ -185,5 +185,6 @@ func (plugin *PluginCloak) Eval(pluginsState *PluginsState, msg *dns.Msg) error
|
|||
}
|
||||
pluginsState.synthResponse = synth
|
||||
pluginsState.action = PluginsActionSynth
|
||||
pluginsState.returnCode = PluginsReturnCodeCloak
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ const (
|
|||
PluginsReturnCodeNXDomain
|
||||
PluginsReturnCodeResponseError
|
||||
PluginsReturnCodeServerError
|
||||
PluginsReturnCodeCloak
|
||||
)
|
||||
|
||||
var PluginsReturnCodeToString = map[PluginsReturnCode]string{
|
||||
|
@ -51,6 +52,7 @@ var PluginsReturnCodeToString = map[PluginsReturnCode]string{
|
|||
PluginsReturnCodeNXDomain: "NXDOMAIN",
|
||||
PluginsReturnCodeResponseError: "RESPONSE_ERROR",
|
||||
PluginsReturnCodeServerError: "SERVER_ERROR",
|
||||
PluginsReturnCodeCloak: "CLOAK",
|
||||
}
|
||||
|
||||
type PluginsState struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue