Skip to content

Commit a9b5448

Browse files
committed
https addresses use default port of 443
1 parent 81d4db0 commit a9b5448

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/epee/src/abstract_http_client.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ namespace http
135135
http::url_content parsed{};
136136
const bool r = parse_url(address, parsed);
137137
CHECK_AND_ASSERT_MES(r, false, "failed to parse url: " << address);
138+
if (parsed.schema == "https" && parsed.port == 0) parsed.port = 443;
138139
set_server(std::move(parsed.host), std::to_string(parsed.port), std::move(user), std::move(ssl_options));
139140
return true;
140141
}

0 commit comments

Comments
 (0)