Fix test to use a random port and not 443

This commit is contained in:
Quentin McGaw
2026-06-05 04:58:47 +00:00
parent 820689cc23
commit c18c54c3b7
3 changed files with 8 additions and 4 deletions
+1 -2
View File
@@ -24,8 +24,7 @@ func (c *Client) OpenHTTPS(ctx context.Context, destinationTLSName string, desti
return nil, nil, fmt.Errorf("binding source port: %w", err)
}
const httpsPort = 443
destinationAddrPort := netip.AddrPortFrom(destinationIP, httpsPort)
destinationAddrPort := netip.AddrPortFrom(destinationIP, c.httpsPort)
const remove = false
err = c.firewall.AcceptOutputFromIPPortToIPPort(ctx, "tcp", c.outboundInterface,