feat: add native fnOS gateway socket and base path support
CI / verify (push) Canceled after 0s

This commit is contained in:
2026-10-02 14:59:57 +08:00
parent c5502b0f95
commit 419c205103
7 changed files with 69 additions and 9 deletions
+2 -1
View File
@@ -912,6 +912,7 @@ import {
WarningOutline,
} from '@vicons/ionicons5'
import { api, asList } from '../api/client'
import { withBase } from '../api/base'
import type { CfTunnel, DiscoveredService, ProxyClientConn, ProxyRule, ProxySavePayload, ProxyTraffic } from '../api/types'
import { useVisibilityPolling } from '../composables/useVisibilityPolling'
import EmptyState from '../components/EmptyState.vue'
@@ -1835,7 +1836,7 @@ function stopLogStream() {
function startLogStream() {
const rule = selectedRule.value
if (!rule || logEventSource) return
logEventSource = new EventSource(`/api/proxies/${rule.id}/logs/stream?tail=100`, {
logEventSource = new EventSource(withBase(`/api/proxies/${rule.id}/logs/stream?tail=100`), {
withCredentials: true,
})
logEventSource.addEventListener('log', (event) => {