From ee21dd73e0288b5f753a9c5f8f47c3829d450c1a Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Tue, 8 Oct 2024 12:45:32 +0300 Subject: [PATCH] [#10] dialer: Fix formatting Signed-off-by: Dmitrii Stepanov --- dialer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialer.go b/dialer.go index c0e1e96..8099520 100644 --- a/dialer.go +++ b/dialer.go @@ -209,7 +209,7 @@ func processSubnet(subnet string, sources []iface) (Subnet, error) { // Hostnames for address are currently not supported. func (d *dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) { addr, err := netip.ParseAddrPort(address) - if err != nil { //try resolve as hostname + if err != nil { // try resolve as hostname return d.dialContextHostname(ctx, network, address) } return d.dialAddr(ctx, network, address, addr)