mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-03 11:02:11 +08:00
fix relay updates for proxy
This commit is contained in:
@@ -235,9 +235,9 @@ func setSubscriptions(client mqtt.Client, nodeCfg *config.ClientConfig) {
|
||||
}
|
||||
if token := client.Subscribe(fmt.Sprintf("proxy/%s/%s", nodeCfg.Node.Network, nodeCfg.Node.ID), 0, mqtt.MessageHandler(ProxyUpdate)); token.WaitTimeout(mq.MQ_TIMEOUT*time.Second) && token.Error() != nil {
|
||||
if token.Error() == nil {
|
||||
logger.Log(0, "network:", nodeCfg.Node.Network, "connection timeout")
|
||||
logger.Log(0, "###### network:", nodeCfg.Node.Network, "connection timeout")
|
||||
} else {
|
||||
logger.Log(0, "network:", nodeCfg.Node.Network, token.Error().Error())
|
||||
logger.Log(0, "###### network:", nodeCfg.Node.Network, token.Error().Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user