Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以一条命令参数代理多个线路 #1052

Open
crow4586 opened this issue Nov 27, 2024 · 2 comments
Open

是否可以一条命令参数代理多个线路 #1052

crow4586 opened this issue Nov 27, 2024 · 2 comments

Comments

@crow4586
Copy link

假设我有3条线路,我是否可以一条命令参数同时代理这3条线路。
比如,gost -L 111 -F=WS://AAAAA -L 222 -F=WS://BBBBB -L 333 -F=WS://CCCC
目前如果如此配置,是本地111代理 连接AAA---222---333 形成串联,能否让他们3条线路独立生效?

感谢赐教。

@waloyn
Copy link

waloyn commented Nov 29, 2024

通过命令行无法实现,请通过配置文件实现,例如:

services:
- name: service-0
  addr: ":8080"
  handler:
    type: http
    chain: chain-0
- name: service-1
  addr: ":8081"
  handler:
    type: http
    chain: chain-1
- name: service-2
  addr: ":8082"
  handler:
    type: http
    chain: chain-2
  listener:
    type: tcp
chains:
- name: chain-0
  hops:
  - name: hop-0
    nodes:
    - name: node-0
      addr: 192.168.1.1:8080
      connector:
        type: http
      dialer:
        type: tcp
- name: chain-1
  hops:
  - name: hop-0
    nodes:
    - name: node-0
      addr: 192.168.1.1:8081
      connector:
        type: http
      dialer:
        type: tcp
- name: chain-2
  hops:
  - name: hop-0
    nodes:
    - name: node-0
      addr: 192.168.1.1:8082
      connector:
        type: http
      dialer:
        type: tcp

@crow4586
Copy link
Author

非常感谢您的解答回复,我继续学习研究。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants