From 1724933e877fa07a780bdc9a384f04c7538b846d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 2 May 2022 10:23:16 +0200 Subject: [PATCH] openwrt/ipv4: output peer section at the end --- openwrt/openwrt-add-ipv4-vpn.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/openwrt/openwrt-add-ipv4-vpn.sh b/openwrt/openwrt-add-ipv4-vpn.sh index c97050f..0b1f795 100755 --- a/openwrt/openwrt-add-ipv4-vpn.sh +++ b/openwrt/openwrt-add-ipv4-vpn.sh @@ -24,10 +24,10 @@ public_key=$(echo $private_key | wg pubkey) case $my_wireguard_ip in 185.155.29.*) - vpn_endpoint_pubkey=6BRnQ+dmeFzVCH9RbM1pbJ7u3y3qrl+zUzzYCmC88kE= + vpn_endpoint_pubkey="6BRnQ+dmeFzVCH9RbM1pbJ7u3y3qrl+zUzzYCmC88kE=" ;; 185.155.30.*) - vpn_endpoint_pubkey=5ach7pUQ57aa402LHz1MYh7lyBZS0GvBEw2PC6dMHW4= + vpn_endpoint_pubkey="5ach7pUQ57aa402LHz1MYh7lyBZS0GvBEw2PC6dMHW4=" ;; *) echo "Unknown VPN host for IP $my_wireguard_ip" >&2 @@ -77,4 +77,10 @@ uci commit EOF -echo "Host ${my_ip} uses ip ${my_wireguard_ip} with public key ${public_key}" +echo "Host ${my_ip} uses ip ${my_wireguard_ip} with public key ${public_key}:" + +cat <