mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-01 20:41:28 +02:00
Fix Windows lint: handle close error and exclude vendored WFP types from unused
This commit is contained in:
@@ -92,6 +92,9 @@ linters:
|
||||
- linters:
|
||||
- unused
|
||||
path: client/firewall/iptables/rule\.go
|
||||
- linters:
|
||||
- unused
|
||||
path: client/internal/dns/dnsfw/(types|syscall|zsyscall)_windows.*\.go
|
||||
- linters:
|
||||
- gosec
|
||||
- mirror
|
||||
|
||||
@@ -66,7 +66,7 @@ func installFilters(cfg installConfig) (session uintptr, err error) {
|
||||
|
||||
base, err := registerBaseObjects(session)
|
||||
if err != nil {
|
||||
fwpmEngineClose0(session)
|
||||
_ = fwpmEngineClose0(session)
|
||||
return 0, fmt.Errorf("register base objects: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user