-
-
- updateConnection(idx, 'address', e.target.value)
- }
- />
-
-
-
-
-
- 自动连接
-
-
- updateConnection(idx, 'autoConnect', checked)
- }
- />
-
-
-
+ autoConnections.map((endpoint, idx) => (
+
+
+ updateListItem(idx, e.target.value, setAutoConnections)
+ }
+ />
+
))
)}
@@ -761,7 +678,60 @@ function SettingsForm({
- {/* 2. NTP Server List */}
+ {/* 2. Published External Endpoints */}
+
+
+
+ 本机外部端点
+
+ 本节点对外发布且可被其他节点访问的端点,不是远端连接目标
+
+
+
+
+
+
+ {externalEndpoints.length === 0 ? (
+
+ 未配置本机外部端点
+
+ ) : (
+ externalEndpoints.map((endpoint, idx) => (
+
+
+ updateListItem(idx, e.target.value, setExternalEndpoints)
+ }
+ />
+
+
+ ))
+ )}
+
+
+
+
+ {/* 3. NTP Server List */}
diff --git a/src/types/api.ts b/src/types/api.ts
index 86276cc..3b54c6e 100644
--- a/src/types/api.ts
+++ b/src/types/api.ts
@@ -64,7 +64,7 @@ export interface SSEEventData {
links: RemoteLinkItem[]
}
-export interface RouteItemData {
+export interface RoutingTableItem {
destination: string
protocol: number
preference: number
@@ -103,12 +103,6 @@ export interface NodeInfoDetail {
openLines?: string[]
}
-export interface NetworkInterfaceInfo {
- name: string
- displayName: string
- addresses: string[]
-}
-
export interface KLALBControllerConfig {
DeviceName?: string
DeviceDescription?: string