fix: linux 下跳过证书检查未正确绑定的问题
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/Mmx233/BitSrunLoginGo/internal/controllers"
|
||||
"github.com/Mmx233/BitSrunLoginGo/internal/global"
|
||||
"github.com/Mmx233/BitSrunLoginGo/tools"
|
||||
@@ -34,7 +33,7 @@ func main() {
|
||||
if err = controllers.Login(eth, false); err != nil {
|
||||
log.Errorln("登录出错: ", err)
|
||||
if !global.Config.Settings.Log.DebugLevel {
|
||||
fmt.Printf("开启调试日志(debug_level)获取详细信息")
|
||||
log.Infoln("开启调试日志(debug_level)获取详细信息")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package tools
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"github.com/Mmx233/BitSrunLoginGo/internal/global"
|
||||
"github.com/Mmx233/tool"
|
||||
"net"
|
||||
@@ -34,6 +35,7 @@ func genHttpPack(eth *Eth) *Http {
|
||||
DialContext: dialer.DialContext,
|
||||
TLSHandshakeTimeout: global.Timeout,
|
||||
IdleConnTimeout: global.Timeout,
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: global.Config.Settings.Basic.SkipCertVerify},
|
||||
}
|
||||
tr.Proxy = http.ProxyFromEnvironment
|
||||
return &Http{
|
||||
|
||||
Reference in New Issue
Block a user