Update Go, deps and linter

This commit is contained in:
Daniel
2022-08-30 16:13:26 +02:00
parent 44b5375bb4
commit 8cf882f4d4
22 changed files with 87 additions and 88 deletions

View File

@@ -30,7 +30,7 @@ const (
ServerSourceEnv = "env"
)
// DNS Resolver alias
// DNS resolver scheme aliases.
const (
HTTPSProtocol = "https"
TLSProtocol = "tls"
@@ -117,14 +117,14 @@ func (info *ResolverInfo) ID() string {
case ServerTypeEnv:
info.id = ServerTypeEnv
case ServerTypeDoH:
info.id = fmt.Sprintf(
info.id = fmt.Sprintf( //nolint:nosprintfhostport // Not used as URL.
"https://%s:%d#%s",
info.Domain,
info.Port,
info.Source,
)
case ServerTypeDoT:
info.id = fmt.Sprintf(
info.id = fmt.Sprintf( //nolint:nosprintfhostport // Not used as URL.
"dot://%s:%d#%s",
info.Domain,
info.Port,