second track for vk
This commit is contained in:
1 parent
aef273556b
commit
b40c59651a
14 files changed
+501
-36
No files matched your search
@@ -21,4 +21,5 @@ export interface JoinerSettings {
|
||||
resources: 'moderate' | 'default' | 'unlimited';
|
||||
dns: string;
|
||||
noTun: boolean;
|
||||
dualTrack: boolean;
|
||||
}
|
||||
@@ -119,6 +119,9 @@ function spawnJoiner(settings: JoinerSettings): { ok: boolean; error?: string }
|
||||
if (settings.socksUser) args.push('--socks-user', settings.socksUser);
|
||||
if (settings.socksPass) args.push('--socks-pass', settings.socksPass);
|
||||
if (noTun) args.push('--no-tun');
|
||||
if (settings.dualTrack && (settings.platform === 'vk' || settings.platform === 'wbstream')) {
|
||||
args.push('--dual-track');
|
||||
}
|
||||
|
||||
const elevateOnLinux =
|
||||
process.platform === 'linux' && !noTun &&
|
||||
|
||||
@@ -99,6 +99,7 @@ startBtn.addEventListener('click', async () => {
|
||||
resources: select('resources').value,
|
||||
dns: input('dns').value.trim() || '1.1.1.1,8.8.8.8',
|
||||
noTun: input('noTun').checked,
|
||||
dualTrack: input('dualTrack').checked,
|
||||
};
|
||||
const r = await bridge.start(settings);
|
||||
if (!r.ok) appendLog(`[ui] start failed: ${r.error}\n`);
|
||||
|
||||
Reference in new issue
Block a user