func (header *Header) UDPAddrs() (sourceAddr, destAddr *net.UDPAddr, ok bool) {
	if !header.TransportProtocol.IsDatagram() {
		return nil, nil, false
	}
	sourceAddr, sourceOK := header.SourceAddr.(*net.UDPAddr)
	destAddr, destOK := header.DestinationAddr.(*net.UDPAddr)
	return sourceAddr, destAddr, sourceOK && destOK
}
// UDPAddrs returns the udp addresses for the proxy protocol header.
UDPAddrs returns the udp addresses for the proxy protocol header.
// UDPAddrs returns the udp addresses for the proxy protocol header .
func (header *Header) UDPAddrs() (sourceAddr, destAddr *net.UDPAddr, ok bool) {
	if !header.TransportProtocol.IsDatagram() {
		return nil, nil, false
	}
	sourceAddr, sourceOK := header.SourceAddr.(*net.UDPAddr)
	destAddr, destOK := header.DestinationAddr.(*net.UDPAddr)
	return sourceAddr, destAddr, sourceOK && destOK
}
func ( header * Header ) UDPAddrs ( ) ( sourceAddr , destAddr * net . UDPAddr , ok bool ) { if ! header . TransportProtocol . IsDatagram ( ) { return nil , nil , false } sourceAddr , sourceOK := header . SourceAddr . ( * net . UDPAddr ) destAddr , destOK := header . DestinationAddr . ( * net . UDPAddr ) return sourceAddr , destAddr , sourceOK && destOK }
UDPAddrs returns the udp addresses for the proxy protocol header.
UDPAddrs returns the udp addresses for the proxy protocol header .