1
0

4 Commits

Author SHA1 Message Date
sfera 451ccb25ad make fork 2026-02-20 16:29:39 +03:00
vnxme 52451c524d Adjust dependabot and lint workflows, fix linter issues (#321)
* 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>
2025-08-25 08:23:55 -06:00
vnxme b0a5a508a9 refactor: Modernize and simplify code (#319)
* 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)
2025-08-15 00:38:33 +08:00
vnxme 16b3b200e1 winbox: initial commit of matcher (#255) 2024-10-21 12:24:22 -06:00