func OptDialerConstSourceAdddr(addr net.Addr) DialerOption {
	return func(d *Dialer) {
		d.HeaderProvider = func(_ context.Context, conn net.Conn) *Header {
			return &Header{
				Version:           1,
				Command:           ProtocolVersionAndCommandProxy,
				TransportProtocol: AddressFamilyAndProtocolTCPv4,
				SourceAddr:        addr,
				DestinationAddr:   conn.RemoteAddr(),
			}
		}
	}
}
// OptDialerConstSourceAdddr sets the header provider to be a constant source.
OptDialerConstSourceAdddr sets the header provider to be a constant source.
// OptDialerConstSourceAdddr sets the header provider to be a constant source .
func OptDialerConstSourceAdddr(addr net.Addr) DialerOption {
	return func(d *Dialer) {
		d.HeaderProvider = func(_ context.Context, conn net.Conn) *Header {
			return &Header{
				Version:           1,
				Command:           ProtocolVersionAndCommandProxy,
				TransportProtocol: AddressFamilyAndProtocolTCPv4,
				SourceAddr:        addr,
				DestinationAddr:   conn.RemoteAddr(),
			}
		}
	}
}
func OptDialerConstSourceAdddr ( addr net . Addr ) DialerOption { return func ( d * Dialer ) { d . HeaderProvider = func ( _ context . Context , conn net . Conn ) * Header { return & Header { Version : 1 , Command : ProtocolVersionAndCommandProxy , TransportProtocol : AddressFamilyAndProtocolTCPv4 , SourceAddr : addr , DestinationAddr : conn . RemoteAddr ( ) , } } } }
OptDialerConstSourceAdddr sets the header provider to be a constant source.
OptDialerConstSourceAdddr sets the header provider to be a constant source .