wireguard-tools/src
Ronan Pigott 4154476d89 wg-quick: linux: don't fail down when using systemd-resolved
systemd-resolved has a compatibility interface for use with resolvconf
scripts when resolvectl is called from a symlink from resolvconf.
However, when tearing down the interface, cmd_down calls del_if and then
unset_dns. In the case of systemd-resolved, deleting the interface also
removes the systemd-resolved entry and causes resolvconf -d to fail when
resolvconf really is a symlink to resolvectl. This causes `wg-quick
down` and 'wg-quick@.service' to exit with failure.

Instead we use the resolvconf '-f' flag to ignore non-existent
interfaces, supported by both openresolv and sd-resolved resolvconf.

Signed-off-by: Ronan Pigott <rpigott@berkeley.edu>
[zx2c4: moved -f argument to end to remain compatible with Debian's resolvconf]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-08-27 20:29:17 -06:00
..
completion global: update copyright 2019-01-07 19:26:10 -05:00
man wg: allow setting WG_ENDPOINT_RESOLUTION_RETRIES 2019-05-29 01:23:24 +02:00
systemd wg: pass WG_ENDPOINT_RESOLUTION_RETRIES=infinity to systemd unit 2019-05-31 21:10:41 +02:00
wg-quick wg-quick: linux: don't fail down when using systemd-resolved 2019-08-27 20:29:17 -06:00
wincompat wg: add wincompat layer to wg(8) 2019-05-31 18:30:59 +02:00
config.c wg: allow setting WG_ENDPOINT_RESOLUTION_RETRIES 2019-05-29 01:23:24 +02:00
config.h global: update copyright 2019-01-07 19:26:10 -05:00
containers.h netlink: use __kernel_timespec for handshake time 2019-01-23 14:29:44 +01:00
curve25519.c wg: fight compiler slightly harder 2019-02-05 01:00:52 +01:00
curve25519.h noise: store clamped key instead of raw key 2019-02-03 21:51:18 +01:00
encoding.c wg: c_acc doesn't need to be initialized 2019-02-08 02:32:15 +01:00
encoding.h global: update copyright 2019-01-07 19:26:10 -05:00
genkey.c wg: add wincompat layer to wg(8) 2019-05-31 18:30:59 +02:00
INSTALL wg: add installation note for distros 2017-01-05 19:41:23 +01:00
ipc.c wg: add wincompat layer to wg(8) 2019-05-31 18:30:59 +02:00
ipc.h global: update copyright 2019-01-07 19:26:10 -05:00
Makefile wg: add wincompat layer to wg(8) 2019-05-31 18:30:59 +02:00
mnlg.c global: update copyright 2019-01-07 19:26:10 -05:00
mnlg.h global: update copyright 2019-01-07 19:26:10 -05:00
pubkey.c global: update copyright 2019-01-07 19:26:10 -05:00
set.c global: update copyright 2019-01-07 19:26:10 -05:00
setconf.c global: update copyright 2019-01-07 19:26:10 -05:00
show.c wg: avoid unneccessary next_peer assignments in sort_peers() 2019-03-23 12:50:52 +01:00
showconf.c global: update copyright 2019-01-07 19:26:10 -05:00
subcommands.h global: update copyright 2019-01-07 19:26:10 -05:00
terminal.c global: update copyright 2019-01-07 19:26:10 -05:00
terminal.h global: update copyright 2019-01-07 19:26:10 -05:00
wg.c global: update copyright 2019-01-07 19:26:10 -05:00