Agent Zero AI framework
feat(ui): send tunnel provider to backend
linuztx73bdef208fd2
diff --git a/webui/js/tunnel.js b/webui/js/tunnel.jsindex cf0bc9c4b..40833c01e 100644--- a/webui/js/tunnel.js+++ b/webui/js/tunnel.js@@ -159,6 +159,11 @@ document.addEventListener('alpine:init', () => {this.isLoading = true;this.loadingText = 'Creating tunnel...';++ // Get provider from the parent settings modal scope+ const modalEl = document.getElementById('settingsModal');+ const modalAD = Alpine.$data(modalEl);+ const provider = modalAD.provider || 'serveo'; // Default to serveo if not set// Change create button appearanceconst createButton = document.querySelector('.tunnel-actions .btn-ok');@@ -177,6 +182,7 @@ document.addEventListener('alpine:init', () => {},body: JSON.stringify({action: 'create',+ provider: provider// port: window.location.port || (window.location.protocol === 'https:' ? 443 : 80)}),});