fix: 自定义服务保存时添加port字段,修复发现扫描排除失效

之前 quickAddService 保存自定义服务时遗漏了 port 字段,
导致 scanServices 的 exclude_ports 取不到有效端口值
This commit is contained in:
2026-06-01 18:28:44 +08:00
parent ebc8d687d0
commit 525620b0f8

View File

@@ -2238,6 +2238,7 @@
const newService = {
id: 'custom_' + Date.now(),
name: name,
port: port || '',
url: mainUrl,
admin_url: adminUrl || null,
description: desc || '自定义外部服务',