mirror of https://github.com/status-im/consul.git
Fixed regression with dns server start condition (#3137)
This commit is contained in:
parent
401380ae41
commit
2de032125b
|
@ -790,7 +790,7 @@ func (p ProtoAddr) String() string {
|
|||
}
|
||||
|
||||
func (c *Config) DNSAddrs() ([]ProtoAddr, error) {
|
||||
if c.Ports.DNS == 0 {
|
||||
if c.Ports.DNS <= 0 {
|
||||
return nil, nil
|
||||
}
|
||||
a, err := c.ClientListener(c.Addresses.DNS, c.Ports.DNS)
|
||||
|
|
Loading…
Reference in New Issue