mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-03 18:53:13 -05:00 
			
		
		
		
	This reverts commit 4a34e8b897.
			
			
This commit is contained in:
		@@ -1,3 +1,6 @@
 | 
			
		||||
// +build go1.11
 | 
			
		||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd
 | 
			
		||||
 | 
			
		||||
package reuseport
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
							
								
								
									
										13
									
								
								plugin/pkg/reuseport/listen_go_not111.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								plugin/pkg/reuseport/listen_go_not111.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
// +build !go1.11 !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
 | 
			
		||||
 | 
			
		||||
package reuseport
 | 
			
		||||
 | 
			
		||||
import "net"
 | 
			
		||||
 | 
			
		||||
// Listen is a wrapper around net.Listen.
 | 
			
		||||
func Listen(network, addr string) (net.Listener, error) { return net.Listen(network, addr) }
 | 
			
		||||
 | 
			
		||||
// ListenPacket is a wrapper around net.ListenPacket.
 | 
			
		||||
func ListenPacket(network, addr string) (net.PacketConn, error) {
 | 
			
		||||
	return net.ListenPacket(network, addr)
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user