* refactor: Sync dependabot.yml with Caddy
* refactor: Sync lint.yml and .golangci.yml with Caddy
* refactor: Remove ineffectual assignments
* refactor: Replace bytes.Compare with bytes.Equal
* refactor: Replace nerr.Temporary with nerr.Timeout
nerr.Temporary has been deprecated since Go 1.18 because it shouldn't be used: Temporary errors are not well-defined. Most "temporary" errors are timeouts, and the few exceptions are surprising. Do not use this method.
* refactor: Remove embedded fields from selectors
* refactor: Call wg.Add before starting goroutines
* refactor: Remove caddyfile unmarshalling workarounds
* refactor: Remove redundant breaks
* refactor: Omit redundant nil checks
* refactor: Apply De Morgan's law
* refactor: Replace if statements with a switch statement
* refactor: Replace fmt.Sprintf with String
* refactor: Remove support for RIPEMD-160 hash
"golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications. Also, this package does not and will not provide an optimized implementation. Instead, use a modern hash like SHA-256 (from crypto/sha256).
* refactor: Suppress checks for unconditional breaks
* refactor: Suppress De Morgan's law warning
* refactor: Format imports
* refactor: Fix spelling
* refactor: Remove redundant assignments
* refactor: Remove redundant newlines
* refactor: Pre-allocate some slices
* refactor: Format files (gofumpt)
* refactor: Set TLS min version to 1.3 for QUIC
* refactor: Don't use deprecated TLS.RootCAPEMFiles and TLS.RootCAPool fields
* refactor: Count proxy connections
* refactor: Fix integer overflows or suppress G115
* refactor: Repair i/crlf
* add .editorconfig and .gitattributes
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
---------
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com>
* refactor: Replace interface{} with any (go 1.18)
* refactor: Simplify loops using slices.Contains (go 1.21)
* refactor: Modernize if statements using min (go 1.21)
* refactor: Modernize loops using range over int (go 1.22)