1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 05:20:26 +00:00
Wrong URL shown in the feeds
This commit is contained in:
Timur Ismagilov 2022-06-24 18:15:27 +05:00
parent e38daba7ad
commit a17a0fea83

View File

@ -193,8 +193,10 @@ func ReadConfigFile(path string) error {
TelegramEnabled = (TelegramBotToken != "") && (TelegramBotName != "")
// 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
} else if !strings.Contains(URL, ":") {
URL = "http://" + URL
}
return nil