Skip to content

Commit 9336fd6

Browse files
authored
Merge pull request #130 from baranyaib90/fixes-9
Fixes 9
2 parents 6bb3d56 + 5ff7753 commit 9336fd6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Configure CMake
3333
env:
3434
CC: ${{ matrix.compiler }}
35-
run: cmake -B ${{github.workspace}}/
35+
run: cmake -D CMAKE_BUILD_TYPE=Debug -B ${{github.workspace}}/
3636

3737
- name: Build
3838
env:

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ endfunction()
1616

1717
# CONFIG
1818

19-
set(CMAKE_BUILD_TYPE "Debug")
20-
#set(CMAKE_BUILD_TYPE "Release")
19+
if(NOT CMAKE_BUILD_TYPE)
20+
set(CMAKE_BUILD_TYPE "Release")
21+
message(STATUS "Setting build type to '${CMAKE_BUILD_TYPE}' as none was specified.")
22+
endif()
2123

2224
set(CMAKE_C_FLAGS "-Wall -Wextra --pedantic -Wno-strict-aliasing -Wno-variadic-macros")
2325
set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")

src/https_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static void https_fetch_ctx_init(https_client_t *client,
309309
ASSERT_CURL_EASY_SETOPT(ctx, CURLOPT_TCP_KEEPINTVL, 50L);
310310
ASSERT_CURL_EASY_SETOPT(ctx, CURLOPT_MAXAGE_CONN, 300L);
311311
#endif
312-
ASSERT_CURL_EASY_SETOPT(ctx, CURLOPT_USERAGENT, "dns-to-https-proxy/0.2");
312+
ASSERT_CURL_EASY_SETOPT(ctx, CURLOPT_USERAGENT, "https_dns_proxy/0.3");
313313
ASSERT_CURL_EASY_SETOPT(ctx, CURLOPT_FOLLOWLOCATION, 0);
314314
ASSERT_CURL_EASY_SETOPT(ctx, CURLOPT_NOSIGNAL, 0);
315315
ASSERT_CURL_EASY_SETOPT(ctx, CURLOPT_TIMEOUT, 10 /* seconds */);

0 commit comments

Comments
 (0)