mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
feat: 支持且默认HTTPS
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user