mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-18 22:55:15 +08:00
update server connection
This commit is contained in:

committed by
Matthew R. Kasun

parent
56142f29e1
commit
dfd5961c6c
@@ -237,6 +237,11 @@ func GetMessageQueueEndpoint() (string, bool) {
|
||||
host = config.Config.Server.MQHOST
|
||||
}
|
||||
secure := strings.Contains(host, "wss") || strings.Contains(host, "ssl")
|
||||
if secure {
|
||||
host = "wss://" + host
|
||||
} else {
|
||||
host = "ws://" + host
|
||||
}
|
||||
return host + ":" + GetMQServerPort(), secure
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user