PR feedback fixes

This commit is contained in:
Quentin McGaw
2026-06-09 21:11:15 +00:00
parent 29186feccc
commit 69b4e5c584
3 changed files with 20 additions and 8 deletions
+5 -1
View File
@@ -40,7 +40,11 @@ func New(settings Settings) *Client {
}
}
func (c *Client) OpenHTTPSByDomain(ctx context.Context, hostname string) (
// OpenHTTPSByHostname opens an https connection through the firewall,
// valid for up to one second, to the hostname which in the format `host:port`.
// It first resolves the domain in hostname using DNS over HTTPS and then opens
// the restricted HTTPS connection to the resolved IP.
func (c *Client) OpenHTTPSByHostname(ctx context.Context, hostname string) (
httpClient *http.Client, cleanup func() error, err error,
) {
host, portStr, err := net.SplitHostPort(hostname)