summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src
AgeCommit message (Collapse)AuthorFilesLines
2023-08-30Fix clippy lintsEmīls9-54/+44
2023-08-21Remove `wg_migration_rand_num` field from settingsMarkus Pettersson1-10/+0
2023-08-08impl of Encode for NSOperatingSystemVersionLinus Färnstrand1-3/+12
2023-08-08Fix void return type for Objective-C callsLinus Färnstrand1-3/+3
2023-08-08Use std::ffi for int/short/char FFI typesLinus Färnstrand1-2/+2
2023-08-08Always use std::ffi::c_char for a c_char typeLinus Färnstrand1-2/+2
2023-08-08Migrate from libc::c_void to std::ffi::c_voidLinus Färnstrand4-8/+7
2023-08-07Get rid of "extern crate serde" and import derive macros explicitlyLinus Färnstrand7-6/+8
2023-08-04Replace all use of `lazy_static` with `once_cell`Markus Pettersson6-41/+39
To align more with the upcoming standardizations within the Rust ecosystem which started with the release of `1.70.0` and the inevitable deprecation of `lazy_static`.
2023-08-01Replace unmaintained dirs-next with maintained dirsLinus Färnstrand1-1/+1
Gets rid of one usage of winapi in our dependency tree
2023-07-14Remove `x_threshold_wg_default` codeMarkus Pettersson3-56/+16
Since we migrated to using Wireguard as the definitive default VPN, we can stop reading the `x_threshold_wg_default` field from the API and remove all daemon code related to using it
2023-06-29Add settings migration code, refactor and cleanupJonathan2-11/+296
Bump the settings version. Add code for migrating settings to new version since it is now not backwards compatible. Refactor LocationConstraint and related types to be more lean. Cleanup issues and fix formatting. Refactor LocationConstraint and add migration code
2023-06-29Cleanup review comments, CI issues and android supportJonathan4-43/+93
Add necessary android support to allow it to not crash due to interface changes. Format the code, remove redundant async functions, fix android issues related to not having to use a Vec to store the custom lists and a string as an id. Fix unit tests.
2023-06-29Improve error handling for custom listsJonathan2-2/+37
Create different errors for missing/already existing list and missing/already existing location within list. Use the details field in gRPC to signal these different cases Make errors prettier when output in the CLI.
2023-06-29Add basic features for custom list and file persistenceJonathan3-1/+456
Create the basic features outside of rename for custom lists and route these to the daemon. Persist custom lists in settings. Has basic custom list features done, adds errors. Adds reconnect in the case where a selected custom list is modified.
2023-06-12Resume background requests after loginDavid Lönnhager1-4/+12
2023-05-26Allow dev builds to override location checking endpointMarkus Pettersson1-9/+36
If `mullvad-daemon` was built with the `api-override` feature flag, the new environment variable `MULLVAD_CONNCHECK_HOST` may be used to supply a different hostname for the location checking endpoint than the standard `am.i.mullvad.net`. It is equivalent to replacing `curl https://ipv4.am.i.mullvad.net/json` with `curl https://ipv4.{$MULLVAD_LOCATION_HOST}/json` Note that this change applies to both IPv4 and IPv6 endpoints. Log warning if `MULLVAD_CONNCHECK_HOST` is used in release builds. The variable will have no effect if `mullvad-daemon` was built in release mode, but it is good to let the user know this if he/she thinks otherwise.
2023-05-24Fix warnings pointed out by ClippyLinus Färnstrand1-1/+4
2023-05-03Update CLI for mullvad-daemonDavid Lönnhager1-95/+69
2023-05-03And gRPC interface wrapper and refactor CLI to use clap derive instead of ↵David Lönnhager3-26/+9
the builder
2023-04-26Fix remaining clippy warningsDavid Lönnhager6-12/+11
2023-04-21Remove mullvad-exclusion group on macOSDavid Lönnhager2-60/+2
2023-04-21Fix remaining clippy --fix auto fixes with modificationsLinus Färnstrand1-1/+0
2023-04-21Apply clippy --fix fixesLinus Färnstrand6-18/+16
This commit does not contain everything that `cargo clippy --fix` changed on Windows. But the least controversial and simplest subset. The remaining fixes I felt could use some manual cleanup also.
2023-04-17Log important settingsDavid Lönnhager2-3/+139
2023-04-03Set retry interval to 24 hours for automatic key rotationDavid Lönnhager1-1/+5
2023-03-30Account manager now always rotates key if neededJonathan1-6/+6
Previously the account manager would not rotate the wireguard key unless any account manager command was given. This resulted in old keys not being rotated sometimes when not using the GUI. This fixes this by always starting a key rotation when the account manager starts.
2023-03-29Remove getters and setters from SettingsPersisterDavid Lönnhager2-209/+115
2023-03-27Fix many typosAlexander Seiler1-1/+1
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
2023-03-23Add settings migration for udp2tcp port constraintLinus Färnstrand1-1/+22
2023-02-21Make quantum-resistant tunnel optional in mullvad layerDavid Lönnhager7-35/+341
2023-02-14Don't fail if one of the directories cannot be obtained in the help text for ↵David Lönnhager1-3/+3
mullvad-daemon
2023-02-13Rename settings error variantsDavid Lönnhager5-23/+28
2023-02-10Relax permissions on settings.jsonDavid Lönnhager3-35/+3
2023-02-08Make async fns without awaits into regular fnsLinus Färnstrand3-11/+10
2023-02-01Add option for querying launch daemon state on macOSDavid Lönnhager3-1/+125
2023-01-30Run `cargo clippy --fix` with the new Rust 1.67 preferred formatLinus Färnstrand4-5/+5
2022-11-29Output '[EXPIRED_ACCOUNT]' for WireGuard when the account is out of timeDavid Lönnhager1-1/+2
2022-11-08Use fwmark for routing in openvpnEmīls Piņķis1-0/+2
2022-11-07Refactor tunnel_state_machine::spawnEmīls Piņķis1-3/+4
2022-11-07Split up talpid-coreEmīls Piņķis3-1/+7
2022-10-28Don't expect logging to work during early bootEmīls Piņķis1-23/+33
2022-10-10Fix suggested_upgrade to not special case dev versionsLinus Färnstrand1-15/+11
2022-10-10Adapt all crates to use mullvad-versionLinus Färnstrand4-20/+12
2022-10-10Disable logging for early boot blockerEmīls Piņķis1-17/+21
2022-10-07Reset last location for custom relaysDavid Lönnhager1-1/+1
2022-09-30Stop IPv6 requestsEmīls Piņķis2-8/+18
Stop sending IPv6 geolocation requests if IPv6 is disabled.
2022-09-27Fix clippy complaintsEmīls Piņķis2-3/+3
2022-09-22Remove shutdown daemon commandEmīls Piņķis1-5/+10
2022-09-22Remove shutdown GRPCEmīls Piņķis2-6/+2