Fix tests and linters

This commit is contained in:
Daniel
2022-02-02 12:48:42 +01:00
parent f2fcad4d11
commit 60d8664e7b
171 changed files with 944 additions and 874 deletions

View File

@@ -3,7 +3,7 @@ package netenv
import (
"bytes"
"context"
"crypto/sha1" //nolint:gosec // not used for security
"crypto/sha1"
"io"
"net"
"time"
@@ -17,6 +17,7 @@ var (
networkChangedBroadcastFlag = utils.NewBroadcastFlag()
)
// GetNetworkChangedFlag returns a flag to be notified about a network change.
func GetNetworkChangedFlag() *utils.Flag {
return networkChangedBroadcastFlag.NewFlag()
}