update
This commit is contained in:
@@ -1859,6 +1859,7 @@ Introduce:
|
||||
- The connection established by the returned user and ip will be disconnected by the proxy.
|
||||
- Connections matching the returned conns will be disconnected by the proxy.
|
||||
- If the returned data contains both: user or ip, and conns, then the user or ip will be ignored, and only the connection matching conns will be disconnected.
|
||||
- When the connection is closed, if the authentication cache is enabled, the `user` or `IP` authentication cache will be cleared.
|
||||
|
||||
#### Example
|
||||
Suppose --control-url `http://127.0.0.1:33088/user/control.php` points to a PHP interface address.
|
||||
|
||||
@@ -1991,7 +1991,7 @@ proxy会向控制接口URL发送一个HTTP POST请求,`表单`数据中有三
|
||||
|
||||
`conns`: 当前所有正在连接到代理端口传输数据的tcp连接信息。conns值是一个json字符串,格式是一个数组,元素是一个对象,对象包含了连接的详细详细,
|
||||
conns格式:`[{"id":"ab7bf1f10501d6f7","client":"127.0.0.1:62112","server":"127.0.0.1:9092","user":""}]`
|
||||
对象字段说明:id:连接的唯一id,client:客户端IP地址和端口,server:客户端访问的代理IP和端口,user连接对应认证的用户名(如果有的话,没有为空)
|
||||
对象字段说明:id:连接的唯一id,client:客户端IP地址和端口,server:客户端访问的代理IP和端口,user连接对应认证的用户名(如果有的话,没有为空)
|
||||
|
||||
#### 控制接口返回数据说明
|
||||
|
||||
@@ -2008,6 +2008,7 @@ conns格式:`[{"id":"ab7bf1f10501d6f7","client":"127.0.0.1:62112","server":"12
|
||||
- 返回的用户和ip已经建立的连接会被proxy断开。
|
||||
- 返回的conns匹配的连接会被proxy断开。
|
||||
- 返回的数据,如果同时包含:user或者ip,和conns,那么user或者ip会被忽略,只会断开conns匹配的连接。
|
||||
- 对应的连接被关闭的同时,如果开启了认证缓存,会清除对应的`用户`或`IP`认证缓存。
|
||||
|
||||
#### 示例
|
||||
|
||||
|
||||
Reference in New Issue
Block a user