Skip to content

Commit

Permalink
update limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
ginuerzh committed Nov 18, 2023
1 parent 04c3317 commit c4ddc89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/concepts/bypass.md
Original file line number Diff line number Diff line change
Expand Up @@ -496,4 +496,6 @@ curl -XPOST http://127.0.0.1:8000/bypass -d '{"addr": "example.com:80", "client"
: 用户身份标识,此信息由认证器插件服务生成。

!!! tip "基于用户标识的分流"
GOST内部的分流器逻辑未处理针对特定用户的分流逻辑,如果需要实现此功能需要组合使用认证器插件和分流器插件。认证器插件在认证成功后返回用户标识,GOST会将此用户标识信息再次传递给分流器插件服务,分流器插件服务就可以根据用户标识来做不同的分流策略。
GOST内部的分流器逻辑未处理针对特定用户的分流逻辑,如果需要实现此功能需要组合使用认证器插件和分流器插件。

认证器插件在认证成功后返回用户标识,GOST会将此用户标识信息再次传递给分流器插件服务,分流器插件服务就可以根据用户标识来做不同的分流策略。
4 changes: 3 additions & 1 deletion en/docs/concepts/bypass.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,5 +485,7 @@ curl -XPOST http://127.0.0.1:8000/bypass -d '{"addr": "example.com:80", "client"
: user ID, generated by Authenticator plugin.

!!! tip "Bypass Based On Client ID"
The GOST internal Bypass does not handle the logic for specific clients. If you need to implement this function, you can use an Authenticator plugin and a Bypass plugin in combination. The Authenticator plugin returns the client ID after successful authentication. GOST will pass this client ID information to the Bypass plugin service again, and the Bypass plugin server can implement different strategies based on the client ID.
The GOST internal Bypass does not handle the logic for specific clients. If you need to implement this function, you can use an Authenticator plugin and a Bypass plugin in combination.

The Authenticator plugin returns the client ID after successful authentication. GOST will pass this client ID information to the Bypass plugin service again, and the Bypass plugin server can implement different strategies based on the client ID.

1 change: 0 additions & 1 deletion en/docs/concepts/limiter.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ limiters:
## Plugin
对于流量速率限制器可以配置为使用外部[插件](/concepts/plugin/)服务,限制器会将查询请求转发给插件服务处理。当使用插件时其他参数无效。
Traffic limiter can be configured to use an external [plugin](/en/concepts/plugin/) service, and it will forward the request to the plugin server for processing. Other parameters are ignored when using plugin.
```yaml
Expand Down

0 comments on commit c4ddc89

Please sign in to comment.