2024-04-07 17:25:46 +08:00
|
|
|
//go:build !xpack
|
|
|
|
|
|
|
|
package xpack
|
|
|
|
|
2024-06-06 14:16:14 +08:00
|
|
|
import (
|
|
|
|
"crypto/tls"
|
|
|
|
"net"
|
|
|
|
"net/http"
|
|
|
|
"time"
|
|
|
|
)
|
2024-05-29 11:05:09 +08:00
|
|
|
|
2024-04-11 14:16:10 +08:00
|
|
|
func RemoveTamper(website string) {}
|
|
|
|
|
2024-06-06 14:16:14 +08:00
|
|
|
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-05-29 11:05:09 +08:00
|
|
|
}
|
|
|
|
|
2024-04-11 14:16:10 +08:00
|
|
|
func LoadGpuInfo() []interface{} {
|
|
|
|
return nil
|
2024-04-07 17:25:46 +08:00
|
|
|
}
|