mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-20 05:56:10 +05:00
set def api host
This commit is contained in:
@@ -24,6 +24,7 @@ func LoadConfig() {
|
||||
if err != nil {
|
||||
Cfg.WhiteIds = []int64{}
|
||||
Cfg.BlackIds = []int64{}
|
||||
Cfg.HostTG = "https://api.telegram.org"
|
||||
buf, _ = json.MarshalIndent(Cfg, "", " ")
|
||||
if buf != nil {
|
||||
os.WriteFile(fn, buf, 0666)
|
||||
@@ -34,4 +35,7 @@ func LoadConfig() {
|
||||
if err != nil {
|
||||
log.TLogln("Error read tg config:", err)
|
||||
}
|
||||
if Cfg.HostTG == "" {
|
||||
Cfg.HostTG = "https://api.telegram.org"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user