2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

feat: 支持且默认HTTPS

This commit is contained in:
耗子
2024-10-12 02:52:23 +08:00
parent 96d7e14631
commit 119183971d
15 changed files with 54 additions and 32 deletions

View File

@@ -2,6 +2,7 @@ package api
import (
"fmt"
"log"
"time"
"github.com/go-resty/resty/v2"
@@ -30,7 +31,7 @@ func NewAPI(panelVersion string, url ...string) *API {
hostInfo, err := host.Info()
if err != nil {
panic(fmt.Sprintf("failed to get host info: %v", err))
log.Fatalf("failed to get host info: %v", err)
}
client := resty.New()