diff options
| -rw-r--r-- | app/lib/backend.js | 2 | ||||
| -rw-r--r-- | mullvad-daemon/src/rpc_info.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index 00c40fa05f..45a91a9a50 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -72,7 +72,7 @@ export type IpcCredentials = { }; export function parseIpcCredentials(data: string): ?IpcCredentials { const [connectionString, sharedSecret] = data.split('\n', 2); - if(connectionString && sharedSecret) { + if(connectionString && sharedSecret !== undefined) { return { connectionString, sharedSecret, diff --git a/mullvad-daemon/src/rpc_info.rs b/mullvad-daemon/src/rpc_info.rs index cf9951fc98..b5b35fa8f7 100644 --- a/mullvad-daemon/src/rpc_info.rs +++ b/mullvad-daemon/src/rpc_info.rs @@ -31,7 +31,7 @@ lazy_static! { /// Writes down the RPC connection info to some API to a file. pub fn write(rpc_address: &str, shared_secret: &str) -> Result<()> { open_file(RPC_ADDRESS_FILE_PATH.as_path()) - .and_then(|mut file| write!(file, "{}\n{}", rpc_address, shared_secret)) + .and_then(|mut file| write!(file, "{}\n{}\n", rpc_address, shared_secret)) .chain_err(|| ErrorKind::WriteFailed(RPC_ADDRESS_FILE_PATH.to_owned()))?; debug!( |
