From 719e730c2d354a0907eaea476a2eacd754dfc9c4 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Wed, 8 May 2024 23:16:43 +0300 Subject: [PATCH] fix formatting --- main.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 52cc9d2..c821415 100644 --- a/main.go +++ b/main.go @@ -29,6 +29,7 @@ type jsonMsg struct { // VersionString -- see the makefile var VersionString = "master" +// nolint: gocyclo func main() { // parse env variables machineReadable := os.Getenv("JSON") == "1" @@ -300,14 +301,9 @@ func getRRType() (rrType uint16) { func usage() { _, _ = os.Stdout.WriteString("Usage: dnslookup [ ]\n") _, _ = os.Stdout.WriteString(": mandatory, domain name to lookup\n") - _, _ = os.Stdout.WriteString(": mandatory, server address. Supported: plain, tls:// (DOT), https:// (DOH), sdns:// (DNSCrypt), quic:// (DOQ)\n") + _, _ = os.Stdout.WriteString(": mandatory, server address. Supported: plain, tcp:// (TCP), tls:// (DOT), https:// (DOH), sdns:// (DNSCrypt), quic:// (DOQ)\n") _, _ = os.Stdout.WriteString(": optional, DNSCrypt provider name\n") _, _ = os.Stdout.WriteString(": optional, DNSCrypt server public key\n") - os.Stdout.WriteString("Usage: dnslookup [ ]\n") - os.Stdout.WriteString(": mandatory, domain name to lookup\n") - os.Stdout.WriteString(": mandatory, server address. Supported: plain, tcp:// (TCP), tls:// (DOT), https:// (DOH), sdns:// (DNSCrypt), quic:// (DOQ)\n") - os.Stdout.WriteString(": optional, DNSCrypt provider name\n") - os.Stdout.WriteString(": optional, DNSCrypt server public key\n") } // requestPaddingBlockSize is used to pad responses over DoT and DoH according