chore: listeners support tunnel

This commit is contained in:
wwqgtxx
2022-12-05 17:03:12 +08:00
parent 8c58d8a8ad
commit 5c410b8df4
5 changed files with 118 additions and 8 deletions

View File

@ -671,11 +671,13 @@ listeners:
#listen: 0.0.0.0 # 默认监听 0.0.0.0
# rule: sub-rule-name1 # 默认使用 rules如果未找到 sub-rule 则直接使用 rules
# udp: false # 默认 true
- name: http-in-1
type: http
port: 10809
listen: 0.0.0.0
# rule: sub-rule
- name: mixed-in-1
type: mixed # HTTP(S) 和 SOCKS 代理混合
port: 10810
@ -729,3 +731,12 @@ listeners:
# alpn:
# - h3
# max-udp-relay-packet-size: 1500
- name: tunnel-in-1
type: tunnel
port: 10816
listen: 0.0.0.0
# rule: sub-rule
network: [ tcp, udp ]
target: target.com