61 Commits

Author SHA1 Message Date
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
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
Lan Tian
76e8e35e81
Allow long traces for powerful traceroute binaries 2020-04-09 23:33:24 +08:00
Lan Tian
72f7d02948
Docker image switch to debian 2020-04-09 23:31:25 +08:00
Lan Tian
ca90a0ef9f
Remove A flag from parameters 2020-04-09 23:17:43 +08:00
Lan Tian
0218fd5c1a
Lgproxy auto retry with different protocol version 2020-04-09 23:04:30 +08:00
Lan Tian
b430242fab
Connect to bird on demand, to survive bird restarts 2020-04-02 16:35:49 +08:00
Lan Tian
f204744a4f
Small change on lgproxy traceroute error notification 2020-03-27 16:41:28 +08:00
Lan Tian
ad17c52bb9
Improve parameter handling 2020-03-27 12:21:30 +08:00
Lan Tian
0c06a85a93
Do not upx pack docker image executables anymore 2020-03-27 12:03:19 +08:00