[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


Hi,

> +	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
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list