summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src
AgeCommit message (Collapse)AuthorFilesLines
2018-03-09Only run one instance of daemonJanito Vaqueiro Ferreira Filho2-1/+56
Before the RPC server is started, check if there is already another instance of the daemon running. If there is, and it appears to be responding correctly, don't start the daemon again.
2018-03-06Upgrade jsonrpc-* cratesLinus Färnstrand1-2/+3
2018-03-06Ignore rename error if log file doesn't existJanito Vaqueiro Ferreira Filho1-4/+6
The file is moved only to create a backup of it. If it doesn't exist, there is no need to create the backup, so the error can be safely ignored.
2018-03-06Simplify log file backup creationJanito Vaqueiro Ferreira Filho1-21/+9
Perform a single operation to rename old log file into the backup log file and to overwrite any existing backup.
2018-03-06Forcibly remove old backup of tunnel log fileJanito Vaqueiro Ferreira Filho1-6/+4
2018-03-06Create backup of OpenVPN log fileJanito Vaqueiro Ferreira Filho1-4/+33
Delete previous backup if it already exists.
2018-03-06Rename user_is_root() into running_as_admin()Janito Vaqueiro Ferreira Filho1-4/+4
Making the intention clear in multiple platforms.
2018-03-06Move user check to start of programJanito Vaqueiro Ferreira Filho2-18/+16
2018-03-06Place Unix-only dependency in `cfg(unix)`Janito Vaqueiro Ferreira Filho2-0/+2
2018-03-06Warn if user is running daemon as a non-root userJanito Vaqueiro Ferreira Filho2-0/+18
2018-03-05Fix tests to match new redact signatureLinus Färnstrand1-6/+6
2018-03-05Fix formattingLinus Färnstrand1-7/+5
2018-03-05Use Cow<str> instead of String where possibleLinus Färnstrand1-14/+16
2018-03-05Compile regular expressions once into static variableLinus Färnstrand1-69/+76
2018-03-05Redact all 16 digits numbers from problem reportsLinus Färnstrand1-3/+7
2018-03-05Change String into &str where appropriateLinus Färnstrand1-5/+5
2018-03-02Add coloring to stdout loggingLinus Färnstrand2-32/+67
2018-03-02Silence jsonrpc_core a bitLinus Färnstrand1-0/+2
2018-03-02Adjust logging levels and move logging to own moduleLinus Färnstrand3-44/+64
2018-03-02Add extra newline to .mullvad_rpc_addressLinus Färnstrand1-1/+1
2018-03-02Add --disable-rpc-auth flag to make the CLI workLinus Färnstrand3-18/+46
2018-02-18Add conditional compilation to stuff not needed on WindowsLinus Färnstrand1-0/+1
2018-02-07Make the daemon version be the git descriptionLinus Färnstrand3-7/+12
2018-01-18Add --resource-dir argumentLinus Färnstrand2-4/+16
2018-01-15Add debug logging when BE sends new state to FELinus Färnstrand1-0/+1
2018-01-15Download geoip data from am.i.mullvad on requestLinus Färnstrand4-54/+84
2018-01-15Use new tokio event loop creation mechanismLinus Färnstrand1-1/+4
2018-01-15Add event loop creation to mullvad-rpcLinus Färnstrand1-1/+1
2018-01-15Use serde derive import trickLinus Färnstrand1-2/+1
2018-01-09Remove crate version from version stringsLinus Färnstrand2-7/+5
2018-01-09Add metadata in problem report RPC callLinus Färnstrand1-12/+14
2018-01-09Fix invalid redact of IPv6, plus add testLinus Färnstrand1-4/+11
2018-01-09Default to servers in SwedenErik Larkö1-3/+3
2017-12-27Upgrade rustfmt to 0.3.4Linus Färnstrand1-4/+1
2017-12-20Implement get_allow_lan in mgmt interfaceLinus Färnstrand2-0/+20
2017-12-20Add allow_lan support to daemon and expose on mgmt interfaceLinus Färnstrand2-0/+32
2017-12-20Add allow_lan settings entryLinus Färnstrand1-10/+24
2017-12-20Add field names to SecurityPolicyLinus Färnstrand1-4/+7
2017-12-18Reformat with new rustfmtLinus Färnstrand2-4/+2
2017-12-13Add has_active_relays flag to citiesLinus Färnstrand1-0/+1
2017-12-04Upgrade rustfmt to 0.2.17Linus Färnstrand5-19/+11
2017-12-04Update rustfmt to 0.2.16Linus Färnstrand1-2/+2
2017-12-01Rename mullvadd back to mullvad-daemonLinus Färnstrand2-4/+2
2017-12-01Converting TunnelState::Exiting to SecurityState::SecuredLinus Färnstrand1-2/+3
2017-11-28Update IPv6 redact regex to not redact time, and optimize the run timeErik Larkö2-25/+35
2017-11-27Make sure the OpenVPN log file is readable by non-root usersErik Larkö2-2/+10
When OpenVPN creates it's log file it is only readable by root. When we then want to collect this log file in the problem report we do not want to be root. If OpenVPN on the other hand is told to log to a file that already exists it doesn't change the permissions of that file. So here we create the log file with permissions that work for us before OpenVPN has the chance to create it itself.
2017-11-24Redact IPs and MAC from logsErik Larkö1-11/+148
2017-11-20Rename GetIp -> GetPublicIpLinus Färnstrand2-3/+4
2017-11-17Fix documentation wordingLinus Färnstrand1-1/+1
2017-11-17Add separate command to list relaysLinus Färnstrand1-0/+29