默认传输通道改为 WSS,http 作为可回退通道

This commit is contained in:
yml2213
2026-10-14 21:33:23 +08:00
parent 8c4b15066f
commit cff831ae47
5 changed files with 22 additions and 19 deletions
+2 -2
View File
@@ -492,7 +492,7 @@ function newCookieID(): string {
function pickConfig(values: Partial<UiConfig>): UiConfig {
return {
transport: values.transport || 'http',
transport: values.transport || 'wss',
wssHost: values.wssHost || '',
sid: Number(values.sid || 0),
pid: Number(values.pid || 0),
@@ -1514,7 +1514,7 @@ export default function Dashboard() {
>
<Tag color="blue">{instanceInfo?.name || '默认实例'}</Tag>
</Tooltip>
<Tag>{String(watchedTransport || 'http').toUpperCase()}</Tag>
<Tag>{String(watchedTransport || 'wss').toUpperCase()}</Tag>
<Button icon={<Settings size={16} />} onClick={() => setSettingsOpen(true)}>
设置
</Button>