From be36cefd4b69a61b29a2ee2e8d45ebfc626686b2 Mon Sep 17 00:00:00 2001 From: fengfeng Date: Mon, 2 Feb 2026 19:50:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NodeEditor.tsx | 74 +++++++++++++++++++++++++++++------ src/types/graph.ts | 40 +++++++++++++------ 2 files changed, 91 insertions(+), 23 deletions(-) diff --git a/src/components/NodeEditor.tsx b/src/components/NodeEditor.tsx index 16278e5..bda7a2f 100644 --- a/src/components/NodeEditor.tsx +++ b/src/components/NodeEditor.tsx @@ -84,20 +84,71 @@ export default function NodeEditor({
handleInputChange('hostId', e.target.value)} - placeholder="将用作为虚拟地址的最后一位。同一子网下主机ID不能重复,不得超过255" + placeholder="同一子网ID下主机ID不能重复,不得超过255" />
- + handleInputChange('groupId', e.target.value)} + placeholder="不得超过255" + /> +
+ + {/* host options */} + +
+ + handleInputChange('postUp', e.target.value)} + /> +
+ +
+ + handleInputChange('postDown', e.target.value)} + /> +
+ +
+ + handleInputChange('mtu', e.target.value)} + placeholder={settings.mtu ? `默认值:${settings.mtu}` : ''} + /> +
+ +
+ + handleInputChange('listenPort', e.target.value)} - placeholder="例如: 51820" + placeholder={`默认值:${settings.listenPort}`} />
@@ -107,17 +158,16 @@ export default function NodeEditor({ type="text" value={formData.dnsServers || ''} onChange={(e) => handleInputChange('dnsServers', e.target.value)} - placeholder="例如: 8.8.8.8" + placeholder="例如: 8.8.8.8,1.1.1.1" />
- - handleInputChange('persistentKeepalive', e.target.value)} - placeholder="秒数" + +