Commit 5b737405 authored by wangmingming's avatar wangmingming

11

parent 56c4bb9d
...@@ -90,7 +90,8 @@ func (c *Client) GetSessionCookies() map[string]string { ...@@ -90,7 +90,8 @@ func (c *Client) GetSessionCookies() map[string]string {
func (c *Client) GetText() string { func (c *Client) GetText() string {
defer c.Response.Body.Close() defer c.Response.Body.Close()
rb, _ := io.ReadAll(http.DecompressBody(c.Response)) http.DecompressBody(c.Response)
rb, _ := io.ReadAll(c.Response.Body)
return string(rb) return string(rb)
} }
......
package tls package tls
import ( import (
"fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"time" "time"
...@@ -27,6 +28,7 @@ func ForwardIOS(c *gin.Context) { ...@@ -27,6 +28,7 @@ func ForwardIOS(c *gin.Context) {
}) })
return return
} }
fmt.Print(forWard.Url)
logrus.Infof("开始转发 url: %s proxy: %s", forWard.Url, forWard.Proxy) logrus.Infof("开始转发 url: %s proxy: %s", forWard.Url, forWard.Proxy)
t1 := time.Now() t1 := time.Now()
// 开始转发 // 开始转发
......
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