mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	Health-checks should respect force_tcp (#5109)
* health check should respect force_tcp Signed-off-by: tombokombo <tombo@sysart.tech>
This commit is contained in:
		| @@ -144,6 +144,10 @@ func parseStanza(c *caddy.Controller) (*Forward, error) { | ||||
| 		} | ||||
| 		f.proxies[i].SetExpire(f.expire) | ||||
| 		f.proxies[i].health.SetRecursionDesired(f.opts.hcRecursionDesired) | ||||
| 		// when TLS is used, checks are set to tcp-tls | ||||
| 		if f.opts.forceTCP && transports[i] != transport.TLS { | ||||
| 			f.proxies[i].health.SetTCPTransport() | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	return f, nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user