Fixed regression with dns server start condition (#3137)

This commit is contained in:
preetapan 2017-06-09 15:50:06 -07:00 committed by James Phillips
parent 401380ae41
commit 2de032125b
1 changed files with 1 additions and 1 deletions

View File

@ -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)