mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00
Replace SERVER_ERROR with SERVFAIL
If only because SERVFAIL can be looked up on Google
This commit is contained in:
parent
1bcd09ca5a
commit
8728361e89
2 changed files with 6 additions and 6 deletions
|
@ -17,9 +17,9 @@ service if they temporarily can't be refreshed.
|
||||||
issue when initialization took more than 30 seconds ("The service did not
|
issue when initialization took more than 30 seconds ("The service did not
|
||||||
respond to the start or control request in a timely fashion"). Fantastic
|
respond to the start or control request in a timely fashion"). Fantastic
|
||||||
work by Alison Winters, thanks!
|
work by Alison Winters, thanks!
|
||||||
- A new error code, NETWORK_ERROR, has been introduced in order to make
|
- The `SERVER_ERROR` error code has been split into two new error code:
|
||||||
the distinction between network errors and servers responding with a SERVFAIL
|
`NETWORK_ERROR` (self-explanatory) and `SERVFAIL` (a response was returned,
|
||||||
error code.
|
but it includes a `SERVFAIL` error code).
|
||||||
|
|
||||||
* Version 2.0.31
|
* Version 2.0.31
|
||||||
- This version fixes two regressions introduced in version 2.0.29:
|
- This version fixes two regressions introduced in version 2.0.29:
|
||||||
|
|
|
@ -42,7 +42,7 @@ const (
|
||||||
PluginsReturnCodeParseError
|
PluginsReturnCodeParseError
|
||||||
PluginsReturnCodeNXDomain
|
PluginsReturnCodeNXDomain
|
||||||
PluginsReturnCodeResponseError
|
PluginsReturnCodeResponseError
|
||||||
PluginsReturnCodeServerError
|
PluginsReturnCodeServFail
|
||||||
PluginsReturnCodeNetworkError
|
PluginsReturnCodeNetworkError
|
||||||
PluginsReturnCodeCloak
|
PluginsReturnCodeCloak
|
||||||
PluginsReturnCodeServerTimeout
|
PluginsReturnCodeServerTimeout
|
||||||
|
@ -57,7 +57,7 @@ var PluginsReturnCodeToString = map[PluginsReturnCode]string{
|
||||||
PluginsReturnCodeParseError: "PARSE_ERROR",
|
PluginsReturnCodeParseError: "PARSE_ERROR",
|
||||||
PluginsReturnCodeNXDomain: "NXDOMAIN",
|
PluginsReturnCodeNXDomain: "NXDOMAIN",
|
||||||
PluginsReturnCodeResponseError: "RESPONSE_ERROR",
|
PluginsReturnCodeResponseError: "RESPONSE_ERROR",
|
||||||
PluginsReturnCodeServerError: "SERVER_ERROR",
|
PluginsReturnCodeServFail: "SERVFAIL",
|
||||||
PluginsReturnCodeNetworkError: "NETWORK_ERROR",
|
PluginsReturnCodeNetworkError: "NETWORK_ERROR",
|
||||||
PluginsReturnCodeCloak: "CLOAK",
|
PluginsReturnCodeCloak: "CLOAK",
|
||||||
PluginsReturnCodeServerTimeout: "SERVER_TIMEOUT",
|
PluginsReturnCodeServerTimeout: "SERVER_TIMEOUT",
|
||||||
|
@ -285,7 +285,7 @@ func (pluginsState *PluginsState) ApplyResponsePlugins(pluginsGlobals *PluginsGl
|
||||||
case dns.RcodeNameError:
|
case dns.RcodeNameError:
|
||||||
pluginsState.returnCode = PluginsReturnCodeNXDomain
|
pluginsState.returnCode = PluginsReturnCodeNXDomain
|
||||||
case dns.RcodeServerFailure:
|
case dns.RcodeServerFailure:
|
||||||
pluginsState.returnCode = PluginsReturnCodeServerError
|
pluginsState.returnCode = PluginsReturnCodeServFail
|
||||||
default:
|
default:
|
||||||
pluginsState.returnCode = PluginsReturnCodeResponseError
|
pluginsState.returnCode = PluginsReturnCodeResponseError
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue