summaryrefslogtreecommitdiffhomepage
path: root/talpid-dbus
AgeCommit message (Collapse)AuthorFilesLines
2021-12-14Fix some cargo doc warningsDavid Lönnhager1-1/+1
2021-11-29Reformat code without blank_lines_upper_bound = 2Linus Färnstrand3-9/+0
2021-11-08Set all Rust crates to edition 2021Linus Färnstrand1-1/+1
2021-09-15Fix Rust nightly errorsDavid Lönnhager1-24/+4
2021-08-12Remove unused talpid-types dependencyLinus Färnstrand1-1/+0
2021-08-09Always disable DNS over TLS in systemd-resolvedEmīls1-0/+28
2021-07-13Update tokio dependenciesDavid Lönnhager1-1/+1
2021-06-21Fix unused borrowDavid Lönnhager1-2/+2
2021-06-09Work around issue where systemd-resolved only replaces a single existing DNS ↵David Lönnhager1-1/+28
server on an interface
2021-06-09Fix D-Bus errors by using a separate connection for the route monitorDavid Lönnhager1-0/+11
2021-06-09Infer and monitor interfaces for DNS configDavid Lönnhager2-17/+140
2021-03-26Fix deadlock in systemd-resolvedEmīls1-5/+9
2021-03-02Watch DNS config changes in systemd-resolvedEmīls4-0/+413
Certain NM versions will overwrite systemd-resovled config when they're reapplying existing config, this can be invoked `nmcli general reload dns-full` or by receiving a new DHCP lease. NM will just wipe the config for interfaces it doesn't have the config for in systemd-resolved, and since our daemon prefers systemd-resolved over NM, our config would be wiped. To fix this, I've changed the systemd-resolved DNS code to listen to changes to the global DNS config and reapply the tunnel interface DNS config if it's changed in any way. To better seperate the conecrns, the systemd-resolved DBus specific code was moved to the `talpid-dbus` crate, and the DNS code that manages the state and applies changes remains in `talpid-core`. One other solution that was considered was to just prefer NM over systemd-resolved, and we already kind of could do that, but the coming NM versions (1.28 and up) seem to not be able to manage DNS via it's own /etc/resolv.conf.
2021-03-01Stop using NM if it's too newEmīls1-18/+64
2021-02-05Upgrade err-derive dependency to 0.3.0Linus Färnstrand1-1/+1
2021-01-12Expose NM versionEmīls1-4/+8
2021-01-12Add talpid-dbus crateEmīls3-0/+743