feat(ui): send tunnel provider to backend
linuztx committed
Jun 8, 2025 at 19:18 UTC
73bdef208fd20563015188ed2531edbbb87cec2d
1 file changed
+6
webui/js/tunnel.js
+6
@@ -159,6 +159,11 @@ document.addEventListener('alpine:init', () => {
159
160
this.isLoading = true;
161
this.loadingText = 'Creating tunnel...';
162
+
163
+ // Get provider from the parent settings modal scope
164
+ const modalEl = document.getElementById('settingsModal');
165
+ const modalAD = Alpine.$data(modalEl);
166
+ const provider = modalAD.provider || 'serveo'; // Default to serveo if not set
167
168
// Change create button appearance
169
const createButton = document.querySelector('.tunnel-actions .btn-ok');
@@ -177,6 +182,7 @@ document.addEventListener('alpine:init', () => {
182
},
183
body: JSON.stringify({
184
action: 'create',
185
+ provider: provider
186
// port: window.location.port || (window.location.protocol === 'https:' ? 443 : 80)
187
}),
188
});