summaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-03-31 17:49:12 +0200
committerTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-05-28 10:33:24 +0200
commitd58de446fc9b5849f2f4ebdea075ed72eaabc19a (patch)
tree1c33bbd9bec97ec5493c597f58c095c206854692 /desktop
parent465d2030196127142aaba34b38aa25cfa8930905 (diff)
downloadmullvadvpn-d58de446fc9b5849f2f4ebdea075ed72eaabc19a.tar.xz
mullvadvpn-d58de446fc9b5849f2f4ebdea075ed72eaabc19a.zip
Add new constant to use DAEMON_RPC_PATH without prefix
Diffstat (limited to 'desktop')
-rw-r--r--desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts b/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts
index 783a5c88c1..3a08c2cf4c 100644
--- a/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts
+++ b/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts
@@ -49,7 +49,9 @@ import {
} from './grpc-type-convertions';
const DAEMON_RPC_PATH =
- process.platform === 'win32' ? 'unix:////./pipe/Mullvad VPN' : 'unix:///var/run/mullvad-vpn';
+ process.platform === 'win32' ? '//./pipe/Mullvad VPN' : '/var/run/mullvad-vpn';
+const DAEMON_RPC_PATH_PREFIX = 'unix://';
+const DAEMON_RPC_PATH_PREFIXED = `${DAEMON_RPC_PATH_PREFIX}${DAEMON_RPC_PATH}`;
export class SubscriptionListener<T> {
// Only meant to be used by DaemonRpc
@@ -82,7 +84,7 @@ export class DaemonRpc extends GrpcClient {
> = new Map();
public constructor(connectionObserver?: ConnectionObserver) {
- super(DAEMON_RPC_PATH, connectionObserver);
+ super(DAEMON_RPC_PATH_PREFIXED, connectionObserver);
}
public disconnect() {