Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snail007 committed Sep 20, 2022
1 parent c00729e commit 52785c7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2260,6 +2260,19 @@ $data=["user"=>implode(","$badUsers),"ip"=>"","conns"=>[]];
echo json_encode($data);
```

如果代理连接数很大,代理control上报的POST的连接信息数据会比较大,此时可以使用参数`--control-gzip`开启gzip压缩POST的数据,
但是服务端要解压对应的post的gzip数据,PHP示例代码如下:

```php
<?php
parse_str(gzdecode(file_get_contents("php://input")),$query);
$connsArr=json_decode($query["conns"]);
$userArr=explode(",",$query["user"]);
$ipArr=explode(",",$query["ip"]);
$data=["user"=>"","ip"=>"","conns"=>[]];
echo json_encode($data);
```

### 使用代理

http(s)/socks5/sps认证API(`--auth-url`)、控制API(`--control-url`)、流量上报API(`--traffic-url`)三个地址的访问,支持通过代理访问,参数是:`--auth-proxy`
Expand Down
13 changes: 13 additions & 0 deletions docs/manual/zh/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -2034,6 +2034,19 @@ $data=["user"=>implode(","$badUsers),"ip"=>"","conns"=>[]];
echo json_encode($data);
```

如果代理连接数很大,代理control上报的POST的连接信息数据会比较大,此时可以使用参数`--control-gzip`开启gzip压缩POST的数据,
但是服务端要解压对应的post的gzip数据,PHP示例代码如下:

```php
<?php
parse_str(gzdecode(file_get_contents("php://input")),$query);
$connsArr=json_decode($query["conns"]);
$userArr=explode(",",$query["user"]);
$ipArr=explode(",",$query["ip"]);
$data=["user"=>"","ip"=>"","conns"=>[]];
echo json_encode($data);
```

### 使用代理

http(s)/socks5/sps认证API(`--auth-url`)、控制API(`--control-url`)、流量上报API(`--traffic-url`)三个地址的访问,支持通过代理访问,参数是:`--auth-proxy`
Expand Down

0 comments on commit 52785c7

Please sign in to comment.