mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
agent: fix gossip encryption detection
This commit is contained in:
parent
8a652c6ffa
commit
bc0eb4c16d
@ -612,9 +612,12 @@ func (c *Command) Run(args []string) int {
|
||||
}
|
||||
|
||||
// Figure out if gossip is encrypted
|
||||
gossipEncrypted := (config.Server &&
|
||||
c.agent.server.Encrypted() ||
|
||||
c.agent.client.Encrypted())
|
||||
var gossipEncrypted bool
|
||||
if config.Server {
|
||||
gossipEncrypted = c.agent.server.Encrypted()
|
||||
} else {
|
||||
gossipEncrypted = c.agent.client.Encrypted()
|
||||
}
|
||||
|
||||
// Let the agent know we've finished registration
|
||||
c.agent.StartSync()
|
||||
|
Loading…
x
Reference in New Issue
Block a user