]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
systemd: wg-quick should depend on nss-lookup.target
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 30 Jan 2019 17:53:37 +0000 (18:53 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 30 Jan 2019 17:53:37 +0000 (18:53 +0100)
Since wg-quick(8) calls wg(8) which does hostname lookups, we should
probably only run this after we're allowed to look up hostnames.

Reported-by: Anton Castelli <anton.c42@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/systemd/wg-quick@.service

index da5d7872ffb79b482a6955de6615ee23ce26626f..9c67af98b24af7b6d65517d32498f6cb0ddb73b9 100644 (file)
@@ -1,7 +1,7 @@
 [Unit]
 Description=WireGuard via wg-quick(8) for %I
-After=network-online.target
-Wants=network-online.target
+After=network-online.target nss-lookup.target
+Wants=network-online.target nss-lookup.target
 Documentation=man:wg-quick(8)
 Documentation=man:wg(8)
 Documentation=https://www.wireguard.com/