Commit 52ac6441 authored by wang's avatar wang

cronet 130.0.6700.0

parent fdd59101
## tls 转发请求
基本就看 tls/tls.go
```go
func Forward(c *gin.Context){}
```
入参类型 json 格式
```go
type ForwardItem struct {
Proxy string `json:"proxy,omitempty"`
Method string `json:"method,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
Url string `json:"url,omitempty"`
Data string `json:"data,omitempty"`
Timeout int `json:"timeout,omitempty"`
AllowRedirects bool `json:"allow_redirects,omitempty"`
Verify bool `json:"verify,omitempty"`
Debug bool `json:"debug"`
RandomTls bool `json:"random_tls"`
}
```
```shell
docker run -itd --name lcc-tls-forward --privileged=true --restart=always -v /data/log/:/data/log/ -v /home/opt/tls-forward:/root/src/ -p 58000:58000 --cpus=2 -m 2G --log-driver=json-file --log-opt max-size=50m --log-opt max-file=3 golang /bin/sh "/root/src/run.sh"
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment