Update host update form for main host (host 0)

This commit is contained in:
2026-09-20 20:48:47 +01:00
parent b2706ce878
commit a681354eab
5 changed files with 4 additions and 160 deletions
@@ -42,7 +42,7 @@ export default function deriveHostConfig({ host, clients }: Params) {
config_path: host?.dir_names?.HOST_CONFIG_FILE,
address: wg_ip_address ? `${wg_ip_address}/24` : undefined,
listen_port: AppData["DefaultWGListenPort"],
listen_port: host?.listen_port || AppData["DefaultWGListenPort"],
post_up: host?.dir_names?.POST_UP_PATH,
post_down: host?.dir_names?.POST_DOWN_PATH,
public_key: public_key,