mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	plugin/forward: add prefer_udp option (#1944)
* plugin/forward: add prefer_udp option * updated according to code review - fixed linter warning - removed metric parameter in Proxy.Connect()
This commit is contained in:
		
				
					committed by
					
						 Miek Gieben
						Miek Gieben
					
				
			
			
				
	
			
			
			
						parent
						
							7c41f2ce9f
						
					
				
				
					commit
					bc50901234
				
			| @@ -187,7 +187,12 @@ func parseBlock(c *caddy.Controller, f *Forward) error { | ||||
| 		if c.NextArg() { | ||||
| 			return c.ArgErr() | ||||
| 		} | ||||
| 		f.forceTCP = true | ||||
| 		f.opts.forceTCP = true | ||||
| 	case "prefer_udp": | ||||
| 		if c.NextArg() { | ||||
| 			return c.ArgErr() | ||||
| 		} | ||||
| 		f.opts.preferUDP = true | ||||
| 	case "tls": | ||||
| 		args := c.RemainingArgs() | ||||
| 		if len(args) > 3 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user