mirror of
https://github.com/coredns/coredns.git
synced 2026-10-26 04:05:43 -04:00
core/dnsserver: preserve UDP packet destination addresses (#8644)
* core/dnsserver: preserve UDP packet destination addresses Signed-off-by: houyuwushang <180804215+houyuwushang@users.noreply.github.com> * test: modernize reverse UDP reply traversal Signed-off-by: houyuwushang <180804215+houyuwushang@users.noreply.github.com> * test: account for Unix IPv4 source-control capabilities Signed-off-by: houyuwushang <180804215+houyuwushang@users.noreply.github.com> --------- Signed-off-by: houyuwushang <180804215+houyuwushang@users.noreply.github.com>
This commit is contained in:
11
core/dnsserver/udp_other.go
Normal file
11
core/dnsserver/udp_other.go
Normal file
@@ -0,0 +1,11 @@
|
||||
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows
|
||||
|
||||
package dnsserver
|
||||
|
||||
import "net"
|
||||
|
||||
const udpOOBSize = 0
|
||||
|
||||
func enableUDPPacketInfo(*net.UDPConn) bool { return false }
|
||||
func parseUDPPacketInfo([]byte, int) udpPacketInfo { return udpPacketInfo{} }
|
||||
func udpSourceControl(udpPacketInfo) []byte { return nil }
|
||||
Reference in New Issue
Block a user