Skip to content

Commit e8e32ea

Browse files
committed
Don't overwrite resolvconf for clients
1 parent 0e7cf2c commit e8e32ea

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • root/etc/s6-overlay/s6-rc.d/init-wireguard-confs

root/etc/s6-overlay/s6-rc.d/init-wireguard-confs/run

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ if [[ -n "$PEERS" ]]; then
183183
echo "**** No changes to parameters. Existing configs are used. ****"
184184
fi
185185
fi
186+
187+
# Fix openresolv bug - Upstream fix in v3.17.3
188+
resolvconf -a control 2>/dev/null < /etc/resolv.conf
189+
resolvconf -u
186190
else
187191
echo "**** Client mode selected. ****"
188192
USE_COREDNS="${USE_COREDNS,,}"
@@ -194,10 +198,6 @@ if [[ ! -f /config/coredns/Corefile ]]; then
194198
cp /defaults/Corefile /config/coredns/Corefile
195199
fi
196200

197-
# Fix openresolv bug - Upstream fix in v3.17.3
198-
resolvconf -a control 2>/dev/null < /etc/resolv.conf
199-
resolvconf -u
200-
201201
# permissions
202202
lsiown -R abc:abc \
203203
/config

0 commit comments

Comments
 (0)