add --allow-private-dst support for docker, bot and creator app
This commit is contained in:
1 parent
ca0966bc33
commit
d171a757aa
16 files changed
+129
-32
No files matched your search
@@ -98,6 +98,8 @@ function bindSettingsEvents(): void {
|
||||
tm.saveUpstreamProxy();
|
||||
tm.debugLogging = (document.getElementById('debugLogging') as HTMLInputElement).checked;
|
||||
tm.saveDebugLogging();
|
||||
tm.allowPrivateDst = (document.getElementById('allowPrivateDst') as HTMLInputElement).checked;
|
||||
tm.saveAllowPrivateDst();
|
||||
closeSettings();
|
||||
});
|
||||
document.querySelectorAll('.btn-clear-cookies').forEach((btn) => {
|
||||
@@ -253,6 +255,7 @@ function openSettings(): void {
|
||||
(document.getElementById('upstreamUser') as HTMLInputElement).value = tm.upstreamProxy.user;
|
||||
(document.getElementById('upstreamPass') as HTMLInputElement).value = tm.upstreamProxy.pass;
|
||||
(document.getElementById('debugLogging') as HTMLInputElement).checked = tm.debugLogging;
|
||||
(document.getElementById('allowPrivateDst') as HTMLInputElement).checked = tm.allowPrivateDst;
|
||||
document.getElementById('clearCookiesStatus')!.textContent = '';
|
||||
}
|
||||
|
||||
@@ -285,6 +288,7 @@ function init(): void {
|
||||
savedCalls.bindEvents();
|
||||
|
||||
window.bridge.setUpstreamProxy(tm.upstreamProxy);
|
||||
window.bridge.setAllowPrivateDst(tm.allowPrivateDst);
|
||||
|
||||
window.bridge.onRelayLog((tabId: string, msg: string) => {
|
||||
tm.appendRelayLog(tabId, msg);
|
||||
|
||||
@@ -23,6 +23,7 @@ export class RendererTabManager {
|
||||
botSettings: BotSettings;
|
||||
upstreamProxy: UpstreamProxy;
|
||||
debugLogging: boolean;
|
||||
allowPrivateDst: boolean;
|
||||
private onRender: () => void;
|
||||
|
||||
constructor(onRender: () => void) {
|
||||
@@ -36,6 +37,7 @@ export class RendererTabManager {
|
||||
? JSON.parse(savedProxy)
|
||||
: { socks: '', user: '', pass: '' };
|
||||
this.debugLogging = localStorage.getItem('debugLogging') === 'true';
|
||||
this.allowPrivateDst = localStorage.getItem('allowPrivateDst') === 'true';
|
||||
}
|
||||
|
||||
createTab(): string {
|
||||
@@ -258,6 +260,11 @@ export class RendererTabManager {
|
||||
window.bridge.setDebugLogging(this.debugLogging);
|
||||
}
|
||||
|
||||
saveAllowPrivateDst(): void {
|
||||
localStorage.setItem('allowPrivateDst', String(this.allowPrivateDst));
|
||||
window.bridge.setAllowPrivateDst(this.allowPrivateDst);
|
||||
}
|
||||
|
||||
startSavedCall(call: SavedCall): void {
|
||||
this.createTab();
|
||||
this.switchToHeadless(call.platform);
|
||||
|
||||
Reference in new issue
Block a user