summaryrefslogtreecommitdiffhomepage
path: root/mullvad-api
AgeCommit message (Collapse)AuthorFilesLines
2023-09-11Make err-derive a workspace dependencyDavid Lönnhager1-1/+1
2023-09-05Remove forwarded port from devices in Rust codeLinus Färnstrand1-4/+1
2023-08-28Update shadowsocks to 1.16Emīls1-1/+1
2023-08-04Replace all use of `lazy_static` with `once_cell`Markus Pettersson1-1/+1
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-04Remove some use of `once_cell` with new std alternativesMarkus Pettersson1-4/+4
`OnceCell` and `OnceLock` was stabilized in Rust `1.70.0`, which allow us to refactor some use of the `once_cell` crate to use the implementations in the standard library.
2023-08-02Remove unused regex dep from mullvad-apiLinus Färnstrand1-1/+0
2023-08-02Make chrono a workspace dependency and fix featuresLinus Färnstrand1-1/+1
2023-08-01Upgrade rustls related cratesLinus Färnstrand1-2/+2
2023-08-01Disable chrono features to get rid of time dependencyLinus Färnstrand1-1/+1
2023-07-14Move tokio dependency to be a workspace dependencyLinus Färnstrand1-1/+1
2023-07-14Remove `x_threshold_wg_default` codeMarkus Pettersson1-10/+0
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-07-14Set package fields in workspace and inherit in packagesLinus Färnstrand1-5/+6
2023-06-27Upgrade `chrono` to `0.4.26`Markus Pettersson1-1/+1
Fix time zone being ignored on Android, incorrectly outputting UTC timestamps. This more recent version of `chrono` extracts timezone info from a tzdata file on Android. This issue is recognized in `chrono`'s issue tracker: https://github.com/chronotope/chrono/issues/922
2023-06-20Bump shadowsocks commit to prevent misaligned readsEmīls1-1/+1
2023-05-24Fix warnings pointed out by ClippyLinus Färnstrand1-1/+1
2023-05-22Add shadowsocks-proxy crateEmīls1-1/+1
2023-04-20Update shadowsocks to 1.15.3Emīls2-2/+2
2023-03-29Remove getters and setters from SettingsPersisterDavid Lönnhager5-77/+3
2023-03-27Fix many typosAlexander Seiler1-1/+1
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
2023-02-08Make async fns without awaits into regular fnsLinus Färnstrand1-1/+1
2023-01-30Run `cargo clippy --fix` with the new Rust 1.67 preferred formatLinus Färnstrand6-18/+17
2022-12-21Fix rust formattingAlbin1-2/+1
2022-12-21Apply more clippy fixesEmīls1-3/+1
2022-11-28Conditionally compile some API override fieldsDavid Lönnhager3-17/+46
2022-11-28Warn about MULLVAD_API_DISABLE_TLS being set if the API address and host are notDavid Lönnhager1-3/+10
2022-11-28Use specified port for the APIDavid Lönnhager1-4/+9
2022-11-28Make API address overridable from MullvadDaemonDavid Lönnhager1-9/+44
2022-11-28Add option to disable TLS for API RPCs, and resolve address from hostname if ↵David Lönnhager1-14/+28
needed
2022-11-28Don't use bridges if the API endpoint is overriddenDavid Lönnhager2-1/+12
2022-11-28Add support for non-TLS API connectionsDavid Lönnhager3-39/+83
2022-11-28Use once_cell instead of lazy_static in mullvad-apiDavid Lönnhager3-17/+15
2022-11-21Update API ipAndrej Mihajlov1-1/+1
2022-11-07Split up talpid-coreEmīls Piņķis1-3/+0
2022-10-13Fix hyper featuresEmīls Piņķis1-1/+1
2022-10-10Set all Rust crate versions to 0.0.0Linus Färnstrand1-1/+1
2022-09-16Remove unused dependenciesDavid Lönnhager1-1/+0
2022-08-29Fix Clippy errorsDavid Lönnhager2-5/+4
2022-08-25Update chrono to 0.4.21 to fix AndroidEmīls Piņķis1-1/+1
2022-08-15Allow for migrating windows users to WGJonathan1-0/+10
Use a potential value between 0 and 1 provided by the API version check to decide if the Windows client should use WireGuard or OpenVpn. This decision is then persisted in the settings in the form of a random value between 0 and 1 where if the value is higher than the value provided by the API the client will use OpenVpn. If there is no value provided by the API then the client will use WireGuard as the migration has concluded.
2022-07-07Implement functions for extracting relays in mullvad-api as methodsDavid Lönnhager1-108/+113
2022-07-07Move shared endpoint data to the top of the relay listDavid Lönnhager1-77/+67
2022-07-01Remove dependencies reported as unused by cargo udepsLinus Färnstrand1-2/+0
2022-06-21Fix the large majority of clippy warningsJonathan6-27/+26
This commit fixes most of the remaining clippy warnings in the codebase. These warnings were the more semantically difficult ones to fix. There are some warnings that remain from the rebase that will be fixed in the upcoming PR.
2022-06-20Add abstraction for atomic file I/ODavid Lönnhager5-31/+83
2022-06-14Manually fix the simpler non-semantic clippy warnsJonathan3-16/+9
This commit tries to manually fix the clippy warnings that are fairly straightforward and do not have rippling effects on the codebase nor have a very high chance of causing bugs.
2022-06-13Perform a clippy --fixjonathan5-24/+18
This is a giant commit which performs only a clippy --fix. Auditing can happen in two ways, either by reading every line or by running a `cargo clippy --fix` on the previous commit and make sure that the result is the same.
2022-05-25Save 'created' and 'hijack_dns' fields in device structsDavid Lönnhager1-0/+7
2022-05-11Don't stop device check if an API request is abortedDavid Lönnhager1-0/+7
2022-05-11Check status in API response body to determine whether a device has been revokedDavid Lönnhager2-1/+3
2022-05-09Use stable device API endpointsDavid Lönnhager2-2/+2