默认传输通道改为 WSS,http 作为可回退通道
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user