mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-22 02:41:55 +00:00
Note that for GUI Clients, listening is still done by the GUI process, not the IPC service. Yak shave towards #5846. This allows for faster dev cycles since I won't have to compile all the GUI stuff. Some changes in here were extracted from other draft PRs. Changes: - Remove `thiserror` that was never matched on - Don't return the DNS resolvers from the notifier directly, just send a notification and allow the caller to check the resolvers itself if needed - Rename `DnsListener` to `DnsNotifier` - Rename `Worker` to `NetworkNotifier` - remove `unwrap_or_default` when getting resolvers. I don't know why it's there, if there's a good reason then it should be handled inside the function, not in the caller ```[tasklist] ### Tasks - [x] Rename `*Listener` to `*Notifier` - [x] (not needed) ~~Support `/etc/resolv.conf` DNS control method too?~~ ```
17 lines
382 B
Rust
17 lines
382 B
Rust
#[cfg(target_os = "linux")]
|
|
#[path = "network_changes/linux.rs"]
|
|
#[allow(clippy::unnecessary_wraps)]
|
|
mod imp;
|
|
|
|
#[cfg(target_os = "macos")]
|
|
#[path = "network_changes/macos.rs"]
|
|
#[allow(clippy::unnecessary_wraps)]
|
|
mod imp;
|
|
|
|
#[cfg(target_os = "windows")]
|
|
#[path = "network_changes/windows.rs"]
|
|
#[allow(clippy::unnecessary_wraps)]
|
|
mod imp;
|
|
|
|
pub use imp::{DnsNotifier, NetworkNotifier};
|