mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-12 17:59:06 +02:00
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.
21 lines
753 B
Go
21 lines
753 B
Go
//go:build !ios
|
|
|
|
package internal
|
|
|
|
import "net/netip"
|
|
|
|
// overlayWaiter carries no state off iOS. Every other platform assigns the
|
|
// overlay address in the same call chain that creates the interface, or hands
|
|
// the engine an interface that already carries it, so a listener bound right
|
|
// after has nothing to wait for. See the iOS variant for what the wait is.
|
|
type overlayWaiter struct{} //nolint:unused // the iOS variant carries the state
|
|
|
|
// overlayAddrReady reports whether ip can be bound. Always true here.
|
|
func (e *Engine) overlayAddrReady(netip.Addr) bool {
|
|
return true
|
|
}
|
|
|
|
// armOverlayWatch has nothing to watch here and is never reached, since
|
|
// overlayAddrReady never refuses.
|
|
func (e *Engine) armOverlayWatch(string, overlayRebind) {}
|