curl add support for configured port

This commit is contained in:
_N3m0 2023-12-30 23:40:06 +01:00
parent ec681bd9d2
commit 7b0682ad18
1 changed files with 1 additions and 0 deletions

1
page.c
View File

@ -43,6 +43,7 @@ void getPage(void){
}
curl_easy_setopt(curl, CURLOPT_URL, config.addr);
curl_easy_setopt(curl, CURLOPT_PORT, config.port);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, save_chunk);
CURLcode result = curl_easy_perform(curl);