feat(config): switch webPort to URI-style webListen address

- replace integer webPort with MultiProtocolSocketAddress webListen
  (default: http://0.0.0.0:4665) in controller config
- rename Swing UI item to "Web API 监听地址" and validate as full URI
- update WebServer binding to honor configured host and port
- normalize legacy webPort integers to http://0.0.0.0:<port> on load
  and keep JSON API backward compatibility
- update i18n keys in zh_CN and en_US resource bundles
- update root klalb-config.json and AGENTS.md documentation
This commit is contained in:
2026-08-26 19:42:26 +08:00
parent 9cea5ed493
commit 61868fe93e
11 changed files with 99 additions and 84 deletions
+2 -2
View File
@@ -56,7 +56,7 @@
"DeviceName": "Device Name",
"DeviceDescription": "The Description of Device",
"webUI": true,
"webPort": 4665,
"webListen": "http://0.0.0.0:4665",
"NetworkInterfaceExcepts": [],
"Type": "KLALBController"
},
@@ -110,4 +110,4 @@
},
"Type": "SocketBridge"
}
]
]