summaryrefslogtreecommitdiffhomepage
path: root/mullvad-api/src
AgeCommit message (Collapse)AuthorFilesLines
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önnhager2-16/+14
2022-11-21Update API ipAndrej Mihajlov1-1/+1
2022-08-29Fix Clippy errorsDavid Lönnhager2-5/+4
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-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önnhager4-30/+81
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
2022-05-02Remove account number field from non-creation account API responseDavid Lönnhager1-8/+12
2022-04-29Pause API requests when the daemon hasn't received any commands for 3 daysDavid Lönnhager1-3/+84
2022-04-29Only log API availability changes if the state actually changesDavid Lönnhager1-9/+14
2022-04-26Set hijack_dns explicitlyDavid Lönnhager1-1/+5
2022-04-26Rotate the API endpoint when bridge constraints changeDavid Lönnhager1-0/+7
2022-04-21Change API IP to use DDoS protected IPDavid Lönnhager1-1/+1
2022-04-19Track API calls in device managerEmīls1-1/+1
Instead of blocking the device manager on API calls, the API calls are now serviced concurrently, allowing users of the device manager to retrieve data without blocking.
2022-04-11Refactor long-running timers and use talpid-time for suspend-awareDavid Lönnhager1-42/+32
clocks
2022-03-24Restructure how WireGuard obfuscation is configured and appliedOdd Stranne1-2/+2
2022-03-23Rename `mullvad_api::MullvadRpcRuntime` to `mullvad_api::Runtime`David Lönnhager2-12/+10
2022-03-23Rename mullvad-rpc to mullvad-apiDavid Lönnhager12-0/+3112