diff --git a/packages/core/src/parser/go-ptt.ts b/packages/core/src/parser/go-ptt.ts index 1af4de89..f6c44c7a 100644 --- a/packages/core/src/parser/go-ptt.ts +++ b/packages/core/src/parser/go-ptt.ts @@ -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() {} diff --git a/packages/core/src/utils/env.ts b/packages/core/src/utils/env.ts index f65c9594..3f3654ee 100644 --- a/packages/core/src/utils/env.ts +++ b/packages/core/src/utils/env.ts @@ -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({