Compare commits

..

1 Commits

Author SHA1 Message Date
ca294e3091 chore(deps): update goreleaser/goreleaser-action action to v7.2.1
Some checks failed
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (push) Failing after 17s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (push) Successful in 7s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-amd64) (pull_request) Failing after 16s
Run Golang tests / Run unit tests (stable, ubuntu-latest-amd64) (pull_request) Successful in 6s
Lint Markdown files / Run markdown linter (pull_request) Successful in 5s
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (push) Has been cancelled
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (push) Has been cancelled
Lint Golang files / Run golang CI linter (stable, ubuntu-latest-arm64) (pull_request) Has been cancelled
Run Golang tests / Run unit tests (stable, ubuntu-latest-arm64) (pull_request) Has been cancelled
2026-04-27 09:07:00 +00:00
2 changed files with 2 additions and 7 deletions

View File

@@ -9,10 +9,5 @@ linters:
rules: []
warn-unused: true
settings:
gosec:
excludes:
- G706
run:
tests: true

View File

@@ -31,12 +31,12 @@ func main() {
log.Fatalf("failed to get new routing instance: %v", err.Error())
}
_, _, preferredSrc, err := router.Route(ip)
_, _, prefferedSrc, err := router.Route(ip)
if err != nil {
log.Fatalf("failed to find gateway for ip: %v", err.Error())
}
_, err = fmt.Fprintln(os.Stdout, preferredSrc.String())
_, err = fmt.Fprintln(os.Stdout, prefferedSrc.String())
if err != nil {
log.Fatalf("failed to print gateway on stdout: %v", err.Error())
}