Fix compile issue and add -force flag to bypass VPN check

- Updated golang.org/x/net dependency to fix linking error with syscall.recvmsg
- Added -force flag to allow running the tool while connected to VPN
- Fixed linter errors: replaced deprecated ioutil with io/os, added error handling
- Added test, fmt, and lint targets to Makefile
This commit is contained in:
2025-07-14 05:16:24 -07:00
parent 7f736db2cc
commit 93e478755e
5 changed files with 56 additions and 25 deletions

View File

@@ -5,3 +5,12 @@ build:
run:
sudo go run ./cmd/mullvadclosest/*.go
test:
go test -v ./...
fmt:
go fmt ./...
lint:
golangci-lint run