]> Sergey Matveev's repositories - mmc.git/blobdiff - common.go
Ability to connect to http:// entrypoints
[mmc.git] / common.go
index e0e2b3eb5fb6c932c1d9a4bfdf802a4f90e0fea1..f4d6a9d74b6da787780a6c75fafc0e091ce1e758 100644 (file)
--- a/common.go
+++ b/common.go
@@ -1,5 +1,5 @@
 // mmc -- Mattermost client
-// Copyright (C) 2023 Sergey Matveev <stargrave@stargrave.org>
+// Copyright (C) 2023-2024 Sergey Matveev <stargrave@stargrave.org>
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU Affero General Public License as
@@ -105,7 +105,7 @@ func GetUsers(c *model.Client4, debugFd *os.File) (map[string]*model.User, error
 func GetEntrypoint() string {
        s := os.Getenv("MMC_ENTRYPOINT")
        if s == "" {
-               return "mm.invalid"
+               return "http://mm.invalid"
        }
        return s
 }