add helper for t_diagnosadanterapi

This commit is contained in:
vanilia
2025-12-02 14:34:39 +07:00
parent 5acd02287b
commit 80ee7f54bc
12 changed files with 92 additions and 26 deletions

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ import (
func SetConfig() {
a.ParseSingleCfg(&O)
if O.Host == "" || O.Prefix == "" {
if O.TargetHost == "" || O.Prefix == "" {
panic("config sync host and prefix empty")
}
lo.I.Println("sync url config loaded, status: DONE!!")
+3 -3
View File
@@ -3,7 +3,7 @@ package synccfg
var O SyncUrlCfg = SyncUrlCfg{}
type SyncUrlCfg struct {
Prefix string `yaml:"prefix"`
Host string `yaml:"host"`
Enable bool `yaml:"enable"`
Prefix string `yaml:"prefix"`
TargetHost string `yaml:"targetHost"`
Enable bool `yaml:"enable"`
}