ginuerzh
d015378654
test(bypass): add unit tests achieving 96.4% total coverage
...
- 88 tests: 70 for core (96.8%), 12 for gRPC plugin, 14 for HTTP plugin
- Cover all matchers (IP, CIDR, wildcard, IP range), loader sources,
bypassGroup logic, periodReload, and plugin fail-open semantics
- Add nil-logger guard in httpPlugin.Contains to prevent panic
when logger is nil
2026-05-23 16:04:30 +08:00
ginuerzh
bf4af78ebf
docs(bypass): add package and symbol doc comments
...
Add Go doc comments for all exported symbols, option functions, and
internal types across the bypass package and plugin sub-package,
following the style of the admission package.
2026-05-23 15:55:52 +08:00
ginuerzh
54ca9161f7
fix(bypass): httpLoader.Close leak, httpPlugin fail-closed, missing Close method
...
- Add missing httpLoader.Close() in localBypass.Close (was leaking HTTP loader resources)
- Change httpPlugin.Contains to fail-open on errors, matching gRPC plugin
- Add error logging on all httpPlugin error paths (previously silent)
- Add httpPlugin.Close method to drain idle HTTP connections
- Document bypassGroup.Contains whitelist AND / blacklist OR logic
2026-05-23 15:52:22 +08:00
ginuerzh
c7d16962ec
add service option for plugin
2025-08-29 23:36:31 +08:00
Denis Galeev
d5683e9138
prevent panic
2025-08-21 21:21:23 +08:00
ginuerzh
d0ff5358df
fix panic for nil pointer
2025-08-13 21:24:05 +08:00
ginuerzh
4eb006f1b0
tungo: debug exec.Command output
2025-08-09 16:34:04 +08:00
ginuerzh
35a049fb03
rename vtun to tungo
2025-07-26 16:17:04 +08:00
ginuerzh
a5d4774682
add ip range matcher for bypass
2024-12-23 21:06:55 +08:00
ginuerzh
a97ac1f30a
fix http body recorder
2024-10-22 22:51:33 +08:00
ginuerzh
dd179bc951
bypass: wildcard matcher for ip
2024-09-24 20:19:48 +08:00
ginuerzh
69455ace9d
add handler recorder
2024-09-14 23:21:25 +08:00
Christian Groschupp
77a8f28edc
feat: add whitelist support
2024-04-16 21:06:14 +02:00
ginuerzh
3d2a7b7d3b
move x/internal/ctx to x/ctx
2024-01-30 18:19:39 +08:00
ginuerzh
c959fc2f73
add observer
2024-01-03 20:55:06 +08:00
ginuerzh
b1390dda1c
router: update system routes for linux
2023-11-30 19:39:37 +08:00
ginuerzh
88cc6ff4d5
add traffic limiter for proxy handler
2023-11-18 18:28:09 +08:00
ginuerzh
3eca21104a
add port filter for matcher
2023-11-09 10:59:32 +08:00
ginuerzh
0bef7c0cdf
improve tunnel handler
2023-10-27 22:11:11 +08:00
ginuerzh
28824885ab
add entrypoint for tunnel handler
2023-10-20 19:12:09 +08:00
ginuerzh
836cf6eade
add network for bypass
2023-09-30 17:51:55 +08:00
ginuerzh
ea585fc25d
add reload and plugin support for hop
2023-09-28 21:04:15 +08:00
ginuerzh
1760151500
add HTTP plugin
2023-09-20 22:56:43 +08:00
ginuerzh
674a70cd23
add client ID for plugin service
2023-09-19 22:31:37 +08:00
ginuerzh
32c8188351
add plugin system
2023-04-18 20:52:56 +08:00
ginuerzh
5237f79740
add chain hop
2022-09-20 17:54:03 +08:00
ginuerzh
be7af96d40
improve cidr matcher
2022-08-31 10:10:14 +08:00
ginuerzh
bdd239fb09
add list support for auther, admission and bypass
2022-08-23 21:49:49 +08:00
ginuerzh
f3f3acd4e1
more fine-grained log level
2022-08-18 11:34:57 +08:00
ginuerzh
5f3e4177a1
improve file and redis loader
2022-04-21 23:24:52 +08:00
ginuerzh
d6f8ec5116
add file and redis loader
2022-04-11 00:03:04 +08:00
ginuerzh
3bc2524068
refine bypass and admission pattern matchers
2022-04-09 23:30:28 +08:00
ginuerzh
a3346ad246
add pkgs from core
2022-04-04 12:44:35 +08:00