fix: always use tcp

This commit is contained in:
Viren070
2025-11-01 13:20:35 +00:00
parent c7480fd3aa
commit 87667f16db
2 changed files with 14 additions and 11 deletions
+13 -10
View File
@@ -21,16 +21,19 @@ class PTT {
private static _pttConfig: {
network: 'tcp' | 'unix';
address: string;
} =
os.platform() === 'win32'
? {
network: 'tcp',
address: `:${Env.PTT_PORT}`,
}
: {
network: 'unix',
address: Env.PTT_SOCKET,
};
} = {
network: 'tcp',
address: `:${Env.PTT_PORT}`,
};
// os.platform() === 'win32'
// ? {
// network: 'tcp',
// address: `:${Env.PTT_PORT}`,
// }
// : {
// network: 'unix',
// address: Env.PTT_SOCKET,
// };
private constructor() {}
+1 -1
View File
@@ -344,7 +344,7 @@ export const Env = cleanEnv(process.env, {
desc: 'Port to run the addon on',
}),
PTT_PORT: port({
default: 3001,
default: 7070,
desc: 'Port to run the PTT server on (only used on Windows)',
}),
PTT_SOCKET: str({