mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 15:26:04 +08:00
update server connection
This commit is contained in:
parent
bdb221e32d
commit
5384ff14e2
|
@ -236,6 +236,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…
Reference in a new issue