1Panel/backend/utils/xpack/xpack.go

30 lines
548 B
Go
Raw Normal View History

//go:build !xpack
package xpack
import (
"crypto/tls"
"net"
"net/http"
"time"
)
2024-04-11 14:16:10 +08:00
func RemoveTamper(website string) {}
func LoadRequestTransport() *http.Transport {
return &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
DialContext: (&net.Dialer{
Timeout: 60 * time.Second,
KeepAlive: 60 * time.Second,
}).DialContext,
TLSHandshakeTimeout: 5 * time.Second,
ResponseHeaderTimeout: 10 * time.Second,
IdleConnTimeout: 15 * time.Second,
}
}
2024-04-11 14:16:10 +08:00
func LoadGpuInfo() []interface{} {
return nil
}