differentiate between timeout and other error for dnscrypt servers

This commit is contained in:
Alison Winters 2019-10-19 16:15:41 +08:00 committed by Frank Denis
parent 0058bc063e
commit ac6fd3db39
2 changed files with 7 additions and 1 deletions

View file

@ -44,6 +44,7 @@ const (
PluginsReturnCodeResponseError
PluginsReturnCodeServerError
PluginsReturnCodeCloak
PluginsReturnCodeServerTimeout
)
var PluginsReturnCodeToString = map[PluginsReturnCode]string{
@ -57,6 +58,7 @@ var PluginsReturnCodeToString = map[PluginsReturnCode]string{
PluginsReturnCodeResponseError: "RESPONSE_ERROR",
PluginsReturnCodeServerError: "SERVER_ERROR",
PluginsReturnCodeCloak: "CLOAK",
PluginsReturnCodeServerTimeout: "SERVER_TIMEOUT",
}
type PluginsState struct {