mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2026-01-12 13:36:17 +00:00
chore: fallback echo defined nameserver
Update DNS configuration handling in entrypoint script.
This commit is contained in:
@@ -221,8 +221,9 @@ set_envvars() {
|
|||||||
start_and_monitor() {
|
start_and_monitor() {
|
||||||
printf "\n---------------------- STARTING CORE -----------------------\n"
|
printf "\n---------------------- STARTING CORE -----------------------\n"
|
||||||
|
|
||||||
# Regenerate the resolvconf
|
# Due to resolvconf resetting the DNS we echo back the one we defined (or fallback to default).
|
||||||
/usr/sbin/resolvconf -u
|
resolvconf -u
|
||||||
|
echo "nameserver ${global_dns}" >> /etc/resolv.conf
|
||||||
|
|
||||||
# Due to some instances complaining about this, making sure its there every time.
|
# Due to some instances complaining about this, making sure its there every time.
|
||||||
mkdir -p /dev/net
|
mkdir -p /dev/net
|
||||||
|
|||||||
Reference in New Issue
Block a user