mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-06-23 18:28:50 +02:00
- DNS redirect fix
- Remove vim-nox from main container
This commit is contained in:
parent
71920a212b
commit
10cc93c8ce
4 changed files with 5 additions and 3 deletions
|
@ -164,7 +164,7 @@ def generate_firewall_header():
|
|||
#
|
||||
# This script was generated by WireGuard_WebAdmin on {timezone.now().strftime('%Y-%m-%d %H:%M:%S %Z')}
|
||||
#
|
||||
DNS_IP=$(host wireguard-webadmin-dns | grep -oP 'has address \K[\d\.]+')
|
||||
DNS_IP=$(getent hosts wireguard-webadmin-dns | awk '{{ print $1 }}')
|
||||
if [ -z "$DNS_IP" ]; then
|
||||
DNS_IP="127.0.0.250"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue