mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-29 23:46:23 +08:00
add : in server connection string
This commit is contained in:
parent
53b3e7f415
commit
0764632b30
2 changed files with 2 additions and 3 deletions
|
|
@ -210,7 +210,7 @@ func NewTLSConfig(server string) *tls.Config {
|
|||
func setupMQTT(cfg *config.ClientConfig, publish bool) (mqtt.Client, error) {
|
||||
opts := mqtt.NewClientOptions()
|
||||
server := cfg.Server.Server
|
||||
opts.AddBroker("ssl://" + server + servercfg.GetMQPort())
|
||||
opts.AddBroker("ssl://" + server + ":" + servercfg.GetMQPort())
|
||||
opts.SetTLSConfig(NewTLSConfig(server))
|
||||
opts.SetClientID(ncutils.MakeRandomString(23))
|
||||
opts.SetDefaultPublishHandler(All)
|
||||
|
|
|
|||
|
|
@ -224,8 +224,7 @@ func GetMessageQueueEndpoint() string {
|
|||
} else if config.Config.Server.MQHOST != "" {
|
||||
host = config.Config.Server.MQHOST
|
||||
}
|
||||
//Do we want MQ port configurable???
|
||||
return host + GetMQServerPort()
|
||||
return host + ":" + GetMQServerPort()
|
||||
}
|
||||
|
||||
// GetMasterKey - gets the configured master key of server
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue