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

限速导致代理转发连接异常 #457

Closed
xwydq opened this issue Apr 21, 2024 · 2 comments
Closed

限速导致代理转发连接异常 #457

xwydq opened this issue Apr 21, 2024 · 2 comments

Comments

@xwydq
Copy link

xwydq commented Apr 21, 2024

gost 版本

./gost -V
gost 3.0.0-rc10 (go1.21.3 linux/amd64)

配置示例

cat gost.yaml

services:
  - name: s-30175
    addr: :30175
    limiter: limiter-0
    climiter: climiter-0
    handler:
      type: socks5
      chain: c-30175
      auth:
        username: aaa
        password: bbb
    listener:
      type: tcp
chains:
  - name: c-30175
    hops:
      - name: hop-30175
        nodes:
          - name: node-30175
            addr: 3.4.5.6:30175
            connector:
              type: socks5
              auth:
                username: aaa
                password: aaa
            dialer:
              type: tcp
recorders:
  - name: recorder-0
    file:
      path: /opt/gost/record.log
      sep: |2+
limiters:
  - name: limiter-0
    limits:
      - $ 30MB 30MB
      - $$ 10MB
climiters:
  - name: climiter-0
    limits:
      - $ 10
api:
  addr: :8180
  pathPrefix: /api
  accesslog: true
  auth:
    username: aaa
    password: aaa

如何不配置 限速
limiter: limiter-0
climiter: climiter-0
转发正常;
如果配置了限速 会出现连接异常断开的情况

@xwydq
Copy link
Author

xwydq commented Apr 22, 2024

经测试,3.0.0-rc10 版本下,recorders使用插件有效;observer插件不起作用

@ginuerzh
Copy link
Member

Observer需要使用最新版本。

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