Skip to content

Commit

Permalink
Add threads as a dependecy, add notice DoH logs
Browse files Browse the repository at this point in the history
Adding 'threads' as a dependency fix a linking error on Debian 10,
and I also noticed that in that Debian release libcurl gets
verbose on its own when doing DNS over HTTPS lookups
because of curl/curl#3660.
  • Loading branch information
Tachi107 committed Mar 1, 2021
1 parent 71a5d80 commit f771ae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ To build cloudflare-ddns you'll need to install `meson`, `pkg-config`, `cmake`,

After having installed the dependencies, you can build the program with `meson setup build --buildtype=relese` and then `meson compile -C build`. If your Meson version is too old, you have to run `ninja -C build` instead of `meson compile`.

If your libcurl is older than version 7.64.1 (for example in Debian 10) you'll see a lot of connection logs related to DNS over HTTPS lookups; that's a [libcurl bug](https://github.com/curl/curl/issues/3660), and there's nothing I can do about it :/

## Systemd timer

Here's an example of a systemd service + timer that checks and eventually updates one DNS record
Expand Down
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ executable(
sources: 'cloudflare-ddns/main.cpp',
dependencies: [
dependency('libcurl'),
dependency('simdjson')
dependency('simdjson'),
dependency('threads')
],
cpp_args: '-DOPENSSL_NO_SSL3_METHOD'
)

1 comment on commit f771ae3

@Tachi107
Copy link
Owner Author

@Tachi107 Tachi107 commented on f771ae3 Mar 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add threads as a dependency, add notice about DoH logs
Adding 'threads' as a dependency fixes a linking error on Debian 10, [..]

I can't speak lol

Please sign in to comment.