func (header *Header) IPs() (sourceIP, destIP net.IP, ok bool) {
	if sourceAddr, destAddr, ok := header.TCPAddrs(); ok {
		return sourceAddr.IP, destAddr.IP, true
	} else if sourceAddr, destAddr, ok := header.UDPAddrs(); ok {
		return sourceAddr.IP, destAddr.IP, true
	} else {
		return nil, nil, false
	}
}
// IPs returns the ip addresses for the proxy protocol header.
IPs returns the ip addresses for the proxy protocol header.
// IPs returns the ip addresses for the proxy protocol header .
func (header *Header) IPs() (sourceIP, destIP net.IP, ok bool) {
	if sourceAddr, destAddr, ok := header.TCPAddrs(); ok {
		return sourceAddr.IP, destAddr.IP, true
	} else if sourceAddr, destAddr, ok := header.UDPAddrs(); ok {
		return sourceAddr.IP, destAddr.IP, true
	} else {
		return nil, nil, false
	}
}
func ( header * Header ) IPs ( ) ( sourceIP , destIP net . IP , ok bool ) { if sourceAddr , destAddr , ok := header . TCPAddrs ( ) ; ok { return sourceAddr . IP , destAddr . IP , true } else if sourceAddr , destAddr , ok := header . UDPAddrs ( ) ; ok { return sourceAddr . IP , destAddr . IP , true } else { return nil , nil , false } }
IPs returns the ip addresses for the proxy protocol header.
IPs returns the ip addresses for the proxy protocol header .