mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactor: 升级依赖版本并优化构建系统
- 升级核心依赖 (axum 0.8, tower-http 0.6, alsa 0.11 等) - 简化交叉编译配置,切换至 Debian 11 提高兼容性 - 新增 Debian 包打包支持 (debuerreotype 模板) - 移除独立的 mjpeg 解码器,简化视频模块 - 静态链接 libx264/libx265/libopus 到二进制
This commit is contained in:
@@ -245,12 +245,6 @@ const config = ref({
|
||||
// 跟踪服务器是否已配置 TURN 密码
|
||||
const hasTurnPassword = ref(false)
|
||||
|
||||
// 跟踪公共 ICE 服务器状态
|
||||
const hasPublicIceServers = ref(false)
|
||||
const usingPublicIceServers = computed(() => {
|
||||
return !config.value.stun_server && !config.value.turn_server && hasPublicIceServers.value
|
||||
})
|
||||
|
||||
// OTG Descriptor settings
|
||||
const otgVendorIdHex = ref('1d6b')
|
||||
const otgProductIdHex = ref('0104')
|
||||
@@ -554,9 +548,6 @@ async function loadConfig() {
|
||||
// 设置是否已配置 TURN 密码
|
||||
hasTurnPassword.value = stream.has_turn_password || false
|
||||
|
||||
// 设置公共 ICE 服务器状态
|
||||
hasPublicIceServers.value = stream.has_public_ice_servers || false
|
||||
|
||||
// 加载 OTG 描述符配置
|
||||
if (hid.otg_descriptor) {
|
||||
otgVendorIdHex.value = hid.otg_descriptor.vendor_id?.toString(16).padStart(4, '0') || '1d6b'
|
||||
@@ -1261,9 +1252,6 @@ onMounted(async () => {
|
||||
:placeholder="t('settings.stunServerPlaceholder')"
|
||||
/>
|
||||
<p class="text-xs text-muted-foreground">{{ t('settings.stunServerHint') }}</p>
|
||||
<p v-if="usingPublicIceServers && hasPublicIceServers" class="text-xs text-blue-500">
|
||||
{{ t('settings.usingPublicIceServers') }}
|
||||
</p>
|
||||
</div>
|
||||
<Separator />
|
||||
<div class="space-y-2">
|
||||
|
||||
Reference in New Issue
Block a user