mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-10 23:49:09 +02:00
[client] Fix lint findings on the file drop overlay wait
gosec G101 matched the identifier fileDropWatchName: its default pattern includes a bare "pw", which hits case-insensitively inside "fileDropWatch", and the constant's value then cleared the entropy threshold. Nothing here is credential-shaped, so rename rather than suppress. Any fileDropW... spelling keeps the match, hence fileDropReceiverLabel. overlayWait and the non-iOS overlayWaiter are read only by the iOS overlay address wait, and the linter analyses the default build only. Suppress with a reason; the field stays in engine.go as part of the lifecycle.
This commit is contained in:
@@ -257,7 +257,7 @@ type Engine struct {
|
||||
fileDrop *filedrop.Manager
|
||||
fileDropRunning bool
|
||||
fileDropPort uint16
|
||||
overlayWait overlayWaiter
|
||||
overlayWait overlayWaiter //nolint:unused // only read by the iOS overlay wait
|
||||
|
||||
statusRecorder *peer.Status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user