mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
parent
e38daba7ad
commit
a17a0fea83
@ -193,8 +193,10 @@ func ReadConfigFile(path string) error {
|
|||||||
TelegramEnabled = (TelegramBotToken != "") && (TelegramBotName != "")
|
TelegramEnabled = (TelegramBotToken != "") && (TelegramBotName != "")
|
||||||
|
|
||||||
// This URL makes much more sense. If no URL is set or the protocol is forgotten, assume HTTP.
|
// This URL makes much more sense. If no URL is set or the protocol is forgotten, assume HTTP.
|
||||||
if (URL == "") || !strings.Contains(URL, ":") {
|
if URL == "" {
|
||||||
URL = "http://" + ListenAddr
|
URL = "http://" + ListenAddr
|
||||||
|
} else if !strings.Contains(URL, ":") {
|
||||||
|
URL = "http://" + URL
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user