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
+3
View File
@@ -17,6 +17,7 @@ type Client struct {
firewall Firewall
outboundInterface string
dohServers []provider.DoHServer
httpsPort uint16
}
func New(firewall Firewall, defaultInterface string, ipv6Supported bool,
@@ -27,11 +28,13 @@ func New(firewall Firewall, defaultInterface string, ipv6Supported bool,
dohServers[i] = upstreamResolver.DoH
}
const defaultHTTPSPort = 443
return &Client{
firewall: firewall,
outboundInterface: defaultInterface,
ipv6Supported: ipv6Supported,
dohServers: dohServers,
httpsPort: defaultHTTPSPort,
}, nil
}