[OpenWrt-Devel] [PATCH v2] wireguard: skip peer config if public key of the peer is not defined

Jo-Philipp Wich jo at mein.io
Thu Jan 16 03:42:54 EST 2020


> +	if [ -z "$public_key" ]; then
> +		echo "Skipping peer config $peer_config because public key is not defined."
> +		return 0
> +	fi

I guess there will be other error conditions that could cause the wg
setup to fail... is there any more robust way to check the config for
validity? Could some `wg` sub command be used for that?

~ Jo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200116/e67f1010/attachment.sig>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list