From 20647c6456ca5a43b5886c964fa25654915db34c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 3 Oct 2021 17:04:40 +0300 Subject: manual: tweak output a bit --- assets/js/main.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'assets/js') diff --git a/assets/js/main.js b/assets/js/main.js index e17d7e3..4fe4957 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -414,8 +414,13 @@ ${shell_info} ip link add dev ${iface} type wireguard ip addr add ${data.client_ipv4.value.address()} dev ${iface} ip addr add ${data.client_ipv6.value.address()} dev ${iface} -wg set ${iface} private-key <( echo ${data.client_private.value} ) -wg set ${iface} peer ${data.server_public.value} preshared-key <( echo ${data.server_preshared.value} ) endpoint ${data.server_endpoint.value} allowed-ips ${data.client_ipv4.value.allowed_ips_client()},${data.client_ipv6.value.allowed_ips_client()} +wg set ${iface} \\ + private-key <( echo ${data.client_private.value} ) +wg set ${iface} \\ + peer ${data.server_public.value} \\ + preshared-key <( echo ${data.server_preshared.value} ) \\ + endpoint ${data.server_endpoint.value} \\ + allowed-ips ${data.client_ipv4.value.allowed_ips_client()},${data.client_ipv6.value.allowed_ips_client()} ip link set ${iface} up `); } @@ -425,7 +430,10 @@ function manual_server_script(data) { `# On the server, run this to tweak an existing connection. ${shell_info} -wg set ${iface} peer ${data.client_public.value} preshared-key <( echo ${data.server_preshared.value} ) allowed-ips ${data.client_ipv4.value.allowed_ips_server()},${data.client_ipv6.value.allowed_ips_server()} +wg set ${iface} \\ + peer ${data.client_public.value} \\ + preshared-key <( echo ${data.server_preshared.value} ) \\ + allowed-ips ${data.client_ipv4.value.allowed_ips_server()},${data.client_ipv6.value.allowed_ips_server()} `); } -- cgit v1.2.3