Unify connection established print

This commit is contained in:
Zhi Guan
2026-06-13 09:10:09 +08:00
parent 99cc3c634b
commit 23375d1fa3
11 changed files with 49 additions and 14 deletions

View File

@@ -491,6 +491,7 @@ bad:
fprintf(stderr, "%s: error\n", prog);
goto end;
}
tls_connect_print(stderr, 0, 0, NULL, &conn);
if (get) {
snprintf(buf, sizeof(buf), "GET %s HTTP/1.1\r\nHost: %s\r\n\r\n", get, host);