38 Commits
Author SHA1 Message Date
Maddie Zhan 7bbfadeeed fix: skip upx for darwin/arm64 target 2026-04-30 14:26:02 +08:00
Maddie Zhan 7ff3ef4bfb fix: remove unsupported archs on linux platform 2026-04-30 14:23:29 +08:00
Maddie Zhan f0c79fd6f1 fix: remove unsupported archs on linux platform 2026-04-30 14:19:59 +08:00
Maddie Zhan 5c33d51392 fix: remove unsupported archs on freebsd platform 2026-04-30 14:16:45 +08:00
Maddie Zhan c9cbed8313 chore: migrate goreleaser config to v2 2026-04-30 14:09:01 +08:00
Maddie Zhan cd20f44d20 Sync PHP backend feature parity: IP detection, database backends, API endpoints, and frontend
- IP detection: Cloudflare IPv6, ULA IPv6, proxy header chain, offline GeoIP DB
- Database: add SQLite (pure Go, no CGo) and MSSQL backends
- API: add JSON result sharing endpoint and ID obfuscation
- Frontend: add modern CSS design, design switcher, favicon
- Compatibility: ?cors parameter support, human-friendly distance rounding
- Update Go to 1.21, add modernc.org/sqlite and maxminddb deps
2026-04-30 13:53:52 +08:00
Maddie Zhan 9cbc95a6db Fix Windows build
Fixes #44, closes #45
2022-07-09 01:03:33 +08:00
Maddie Zhan fa749f3b45 goreleaser: don't upx compress Linux MIPS bianries 2022-07-09 00:54:04 +08:00
Maddie Zhan 22f21a270b Add missing go.mod dependency 2022-01-18 15:52:20 +08:00
Maddie Zhan 2583e5113a Use default html assets 2021-09-27 11:11:08 +08:00
Maddie Zhan 42cc7740a5 Fix windows/arm64 build 2021-09-18 13:56:26 +08:00
Maddie Zhan bee29e8b7e Update goreleaser config 2021-09-18 13:12:01 +08:00
Maddie Zhan 89a5de0105 Support in-memory telemetry/stats database 2021-09-18 02:19:14 +08:00
Maddie Zhan 800760054e Embed tzdata and rootcerts in binary
For use in environments without tzdata or root certs (like embedded devices)

Fixes #29
2021-09-18 01:58:35 +08:00
Maddie Zhan 8c1aa6b39b Support none database type to disable stats/telemetry
Fixes #21
2021-09-18 01:48:10 +08:00
Maddie Zhan 7204ae2e19 Embed default assets 2021-09-17 21:06:00 +08:00
Maddie Zhan 83d25e00fe Update dependencies 2021-09-17 20:32:57 +08:00
Maddie Zhan a9adc15ce9 Sync frontend components with PHP version 2021-09-17 20:32:31 +08:00
Maddie Zhan dcb9882978 Allow negative coordinates
Fixes #25
2021-05-21 14:21:45 +08:00
Maddie Zhan c755a05b61 Update dependencies 2021-03-18 18:20:08 +08:00
Maddie Zhan e2d2f66e97 Remove web server logger
Fixes #18
2021-03-18 18:17:20 +08:00
Maddie Zhan f033591c81 Fix ISP string 2020-12-21 12:07:27 +08:00
Maddie Zhan 890bc10096 Update PNG output to match PHP impl. better 2020-12-21 00:17:35 +08:00
Maddie Zhan fc6e99b45c Let Viper handle the config file 2020-11-10 16:33:19 +08:00
Maddie Zhan 31d51deba5 Update README 2020-08-20 15:44:41 +08:00
Maddie Zhan cf93e8c545 gofmt 2020-08-20 10:32:50 +08:00
Maddie Zhan b138d9b6bc Use a proven library to calculate distance
Also rounding distance at 2 decimals instead of round to 5
2020-08-20 10:22:47 +08:00
Maddie Zhan 01347b8514 Update dependencies 2020-08-19 17:03:19 +08:00
Maddie Zhan a0a6db8597 Add Proxy Protocol support
Closes #9
2020-08-19 17:02:37 +08:00
Maddie Zhan b76ebec8d0 Update README 2020-08-19 11:38:35 +08:00
Maddie Zhan 86e43891b2 Update README 2020-08-19 11:32:37 +08:00
Maddie Zhan f884386a54 Support HEAD method for all endpoints via middleware 2020-08-17 15:23:54 +08:00
Maddie Zhan 6970d87166 Return 404 for non-existing files instead of 403 2020-08-15 23:13:23 +08:00
Maddie Zhan 64cf616e59 Add index.html 2020-06-17 13:35:15 +08:00
Maddie Zhan 60329fc832 Add option to specify config file 2020-06-16 16:24:29 +08:00
Maddie Zhan bd721cdb07 Allow user to specify assets path in settings
Fixes #2
2020-06-16 16:24:29 +08:00
Maddie Zhan 30c56a0d46 Add assets and settings.toml to release archive 2020-06-03 10:59:28 +08:00
Maddie Zhan fad1302a73 Migrate code from Go branch to new repo 2020-06-02 18:10:50 +08:00