diff --git a/.golangci.yml b/.golangci.yml index 7aa7aff..ea34b75 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,18 +3,22 @@ linters: enable: - gofumpt - govet -# - gci + - gci - staticcheck + - paralleltest + - ineffassign issues: exclude-dirs: - internal linters-settings: -# gci: -# sections: -# - standard -# - prefix(github.com/sagernet/sing) -# - default - staticcheck: - go: '1.19' + gci: + custom-order: true + sections: + - standard + - prefix(github.com/sagernet/) + - default + +run: + go: "1.23" \ No newline at end of file diff --git a/tun_linux.go b/tun_linux.go index 6153abe..fd6fc66 100644 --- a/tun_linux.go +++ b/tun_linux.go @@ -712,7 +712,7 @@ func (t *NativeTun) rules() []*netlink.Rule { it.Family = unix.AF_INET rules = append(rules, it) } - priority++ + // priority++ } if p6 { it = netlink.NewRule() @@ -755,7 +755,7 @@ func (t *NativeTun) rules() []*netlink.Rule { it.Table = t.options.IPRoute2TableIndex it.Family = unix.AF_INET6 rules = append(rules, it) - priority6++ + // priority6++ } if p4 { it = netlink.NewRule()