diff --git a/netenv/location_windows.go b/netenv/location_windows.go index 8234d4ed..0fa7abea 100644 --- a/netenv/location_windows.go +++ b/netenv/location_windows.go @@ -9,7 +9,8 @@ import ( "unsafe" ) -const ( +// Windows specific constants for the WSAIoctl interface. +const ( //nolint:golint SIO_RCVALL = syscall.IOC_IN | syscall.IOC_VENDOR | 1 RCVALL_OFF = 0 diff --git a/profile/database.go b/profile/database.go index f5cce9d6..94c19f9e 100644 --- a/profile/database.go +++ b/profile/database.go @@ -22,8 +22,8 @@ const ( var ( profileDB = database.NewInterface(&database.Options{ - Local: true, - Internal: true, + Local: true, + Internal: true, }) ) diff --git a/profile/endpoints/endpoint.go b/profile/endpoints/endpoint.go index 260d0c8e..d07210e7 100644 --- a/profile/endpoints/endpoint.go +++ b/profile/endpoints/endpoint.go @@ -220,10 +220,6 @@ func parseEndpoint(value string) (endpoint Endpoint, err error) { //nolint:gocog if endpoint, err = parseTypeIPRange(fields); endpoint != nil || err != nil { return } - // domain - if endpoint, err = parseTypeDomain(fields); endpoint != nil || err != nil { - return - } // country if endpoint, err = parseTypeCountry(fields); endpoint != nil || err != nil { return @@ -240,6 +236,10 @@ func parseEndpoint(value string) (endpoint Endpoint, err error) { //nolint:gocog if endpoint, err = parseTypeList(fields); endpoint != nil || err != nil { return } + // domain + if endpoint, err = parseTypeDomain(fields); endpoint != nil || err != nil { + return + } return nil, fmt.Errorf(`unknown endpoint definition: "%s"`, value) }