Commit ccd8a08e authored by wang's avatar wang

111

parent f8256d73
......@@ -40,6 +40,10 @@ func (c *Client) Start() error {
delete(c.Item.Headers, "Cookie")
}
if c.Item.Debug {
logrus.Infof("body: %s\ncookie %s", c.Item.Data, cookie)
}
if c.Item.Debug == false && cookie == "" {
return errors.New("未设置cookie")
}
......
......@@ -71,6 +71,7 @@ func Forward(c *gin.Context) {
return
}
logrus.Infof("开始转发 url: %s proxy: %s", forWard.Url, forWard.Proxy)
t1 := time.Now()
// 开始转发
client, err := NewClient(forWard, false)
......
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