[PATCH] wg-quick: use resolvectl if present to set dns

j at mailb.org j at mailb.org
Wed Aug 8 23:41:06 CEST 2018

Hi Nathan,

On 08/04/2018 01:01 AM, Nathan Chancellor wrote:
> I'd argue a better way to check if a command is available is the command
> built-in:
> if command -v resolvconf >/dev/null; then
>     do stuff
> fi

good point, updated patch and added support for systemd-resolve in case
resolvectl is not present.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-use-resolvectl-or-systemd-resolve-to-configure-dns.patch
Type: text/x-patch
Size: 1148 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20180808/e07c9433/attachment.bin>

More information about the WireGuard mailing list