(ctx context.Context, dest netip.AddrPort)
| 130 | } |
| 131 | |
| 132 | func (d *Dialer) DialTCP(ctx context.Context, dest netip.AddrPort) (net.Conn, error) { |
| 133 | conn, err := d.Dialer.DialContext(ctx, "tcp", dest.String()) |
| 134 | if err != nil { |
| 135 | return nil, fmt.Errorf("unable to dial tcp to origin %s: %w", dest, err) |
| 136 | } |
| 137 | |
| 138 | return conn, nil |
| 139 | } |
| 140 | |
| 141 | func (d *Dialer) DialUDP(dest netip.AddrPort) (net.Conn, error) { |
| 142 | conn, err := d.Dialer.Dial("udp", dest.String()) |
nothing calls this directly
no test coverage detected