mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-17 01:06:19 +08:00
update server connection
This commit is contained in:
parent
56142f29e1
commit
dfd5961c6c
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue