Commit Graph

69 Commits

Author SHA1 Message Date
Lan Tian 6a78cf2e80
proxy: add docker image with mtr 2024-03-09 12:04:05 -08:00
dependabot[bot] c2b7de2e17
build(deps): bump github.com/spf13/viper from 1.18.1 to 1.18.2 in /proxy
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.18.1 to 1.18.2.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.18.1...v1.18.2)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-19 00:48:47 +00:00
dependabot[bot] 7f1cdaa4ee
build(deps): bump github.com/spf13/viper from 1.18.0 to 1.18.1 in /proxy
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.18.0...v1.18.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 00:03:09 +00:00
dependabot[bot] 0594edc69d
build(deps): bump github.com/spf13/viper from 1.17.0 to 1.18.0 in /proxy
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.17.0...v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-07 00:31:37 +00:00
Lan Tian 38bf6aba09
frontend: fix unit tests 2023-11-25 10:47:37 -08:00
dependabot[bot] d253e4311b
build(deps): bump github.com/gorilla/handlers in /proxy
Bumps [github.com/gorilla/handlers](https://github.com/gorilla/handlers) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/gorilla/handlers/releases)
- [Commits](https://github.com/gorilla/handlers/compare/v1.5.1...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/gorilla/handlers
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 00:22:00 +00:00
dependabot[bot] 6176c45006
build(deps): bump github.com/spf13/viper from 1.16.0 to 1.17.0 in /proxy (#86)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-08 21:04:12 -07:00
Simon Marsh 3c9a3e4339
Enable proxy to allow access by CIDR network as well as IP (#84) 2023-10-04 21:33:37 -07:00
Lan Tian 7c0fe0d512
proxy: update traceroute version in Docker image 2023-09-06 20:33:40 -07:00
dependabot[bot] bb479d22ae
build(deps): bump github.com/spf13/viper from 1.15.0 to 1.16.0 in /proxy (#79)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 00:58:12 -07:00
Lan Tian a0246ccee2
general: add unit tests for >80% coverage
Includes a few minor fixes:
- frontend: support setting port for WHOIS server
- proxy: fix handling of very long lines
- proxy: refactor IP allowlist logic, parse allow IP list at startup
2023-05-06 00:23:28 -07:00
James Lu ccd14af0c8
settings: treat empty environment variables as set (#77)
This allows disabling specific options like dns_interface or whois via environment variables.

ref: https://github.com/spf13/viper#working-with-environment-variables
2023-05-05 21:36:38 -07:00
Lan Tian 7b0c8c0556
general: bump go version in go.mod 2023-01-26 22:01:47 -08:00
dependabot[bot] 24fd5203e8
build(deps): bump github.com/spf13/viper from 1.14.0 to 1.15.0 in /proxy (#74)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 10:50:30 -08:00
Yuhui Xu dba2af7634
proxy: fix description for --traceroute_flags (#70) 2022-12-27 15:38:41 -06:00
Yuhui Xu 049775319b
proxy: autodetect traceroute args on startup (#69) 2022-12-25 15:41:29 -06:00
dependabot[bot] 6ec0f2e7a6
build(deps): bump github.com/spf13/viper from 1.13.0 to 1.14.0 in /proxy (#65)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.13.0...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-07 20:26:44 -06:00
dependabot[bot] 675cb26ed1
build(deps): bump github.com/spf13/viper from 1.12.0 to 1.13.0 in /proxy (#63)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.12.0...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-14 12:22:03 -05:00
Yuhui Xu 6f6b2bd283
general: support reading config files (#55) 2022-07-08 23:13:10 -04:00
Kioubit 950c018b18
Confirm that bird access was restricted (#49)
Co-authored-by: Kioubit <kioubit@localhost.invalid>
2022-01-18 03:03:09 -06:00
Lan Tian f60a292129
general: build docker images with correct arch label 2022-01-09 01:45:00 -06:00
James Lu e7f6026854
Add BIRDLG_TRACEROUTE_RAW option to leave traceroute output in the default format (#47) 2022-01-09 00:14:31 -06:00
日下部 詩 58847759b3
一些小改動 (#42)
* 1. remove ":" at the start of port assignement. 2. use BIRDLG_PROXY_PORT at proxy. 3. add custom URL to brand

* goto / if only one server

* add BIRDLG_TRACEROUTE_BIN
2021-11-09 12:27:02 -06:00
Lan Tian dc4d7e6532
general: update makefiles for project 2021-03-15 00:49:13 +08:00
Lan Tian 4413f1032f
general: try to fix multiarch build 2021-03-06 21:21:42 +08:00
Lan Tian 3f612d2e76
proxy: fix plain traceroute not executed 2021-02-28 23:09:11 +08:00
Lan Tian f49f8bac5e
proxy: support arbitraty traceroute arguments 2021-02-27 16:42:42 +08:00
Lan Tian 90e5012840
proxy: filter input to prevent XSS 2021-01-15 01:22:39 +08:00
Simon Marsh 78ce724171
Fix bindata build step and parameterize docker build 2021-01-12 10:21:02 +00:00
Lan Tian 26c51176e4
proxy: add back ipv6 endpoints for compatibility with original project 2020-11-20 21:58:44 +08:00
Milan Pässler 75bc63ffa7 preserve leading spaces 2020-11-18 19:27:46 +01:00
Lan Tian b98d783739
general: use stable debian to build docker image 2020-11-09 01:23:58 +08:00
Lan Tian 5000ad1bbf
general: add s390x & ppc64le 2020-11-07 20:24:37 +08:00
Lan Tian 538699ccd2
proxy: scratch-based docker image 2020-11-07 20:20:42 +08:00
Lan Tian c15942cc32
proxy: fix regex formatting error 2020-10-30 23:33:56 +08:00
Lan Tian 3bcfc3d36c
Remove BIRDv1 support 2020-10-30 23:10:03 +08:00
Lan Tian 79431effb2
proxy: fix handling when allowedIP is empty 2020-10-28 00:00:26 +08:00
Lan Tian 06dbe57ab2
proxy: fix IP limit handling 2020-10-27 23:09:55 +08:00
Brendan Halley 1bd656256f Add source IP filtering/allow list feature 2020-10-25 12:58:11 +11:00
Lan Tian 254b967159
proxy: show output instead of errcode when repeated trying 2020-09-20 00:31:15 +08:00
Lan Tian 1a8c7b6e6b
proxy: output errors of all attempts when failing 2020-09-19 17:54:10 +08:00
Lan Tian f661e878c4
proxy: improve linux fallback logic 2020-08-01 22:23:09 +08:00
Lan Tian 8e74ca0ce7
proxy: also display message on exec error 2020-08-01 22:20:33 +08:00
Lan Tian 442e0df3a6
proxy: add http logging 2020-06-01 23:26:33 +08:00
Lan Tian 4df9006c81
Remove extra spaces in commands 2020-05-17 22:11:34 +08:00
Lan Tian 89fe931abe
Stop tracing 255 hops 2020-04-13 01:54:46 +08:00
Lan Tian e8a58e0936
Combine stdout and stderr when executing 2020-04-10 13:24:56 +08:00
Lan Tian 43f087e51b
Improve DN42 related whois handling 2020-04-10 12:33:56 +08:00
Lan Tian c2f9cb7066
Generate locales for docker, fix arm images 2020-04-09 23:55:08 +08:00
Lan Tian 12b4700397
Fix docker build error 2020-04-09 23:38:59 +08:00