mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: always use tcp
This commit is contained in:
@@ -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() {}
|
||||
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user