mirror of
https://github.com/go-gost/gost.git
synced 2026-10-08 03:55:45 +00:00
test(e2e): add bypass module e2e test suite
Verify both blacklist and whitelist bypass modes: a matching destination skips the dead chain node and connects directly to the echo server, while a non-matching destination is forced through the dead node and never reaches it.
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
# Forward proxy whose only chain node is dead (127.0.0.1:18082). A blacklist
|
||||
# bypass matching the destination skips that node and connects directly to the
|
||||
# echo server; a non-matching destination is forced through the dead node.
|
||||
services:
|
||||
- name: proxy
|
||||
addr: ":8080"
|
||||
handler:
|
||||
type: http
|
||||
chain: my-chain
|
||||
listener:
|
||||
type: tcp
|
||||
|
||||
chains:
|
||||
- name: my-chain
|
||||
hops:
|
||||
- name: hop-0
|
||||
nodes:
|
||||
- name: node-0
|
||||
addr: 127.0.0.1:18082
|
||||
bypass: bypass-0
|
||||
connector:
|
||||
type: http
|
||||
dialer:
|
||||
type: tcp
|
||||
|
||||
bypasses:
|
||||
- name: bypass-0
|
||||
matchers:
|
||||
- "{{.ServerAddr}}"
|
||||
Reference in New Issue
Block a user