mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-03-18 18:14:02 +00:00
- DNS redirect fix
- Remove vim-nox from main container
This commit is contained in:
parent
71920a212b
commit
10cc93c8ce
@ -11,7 +11,6 @@ RUN apt-get update && apt-get install -y \
|
||||
inetutils-ping \
|
||||
inetutils-traceroute \
|
||||
nano \
|
||||
vim-nox \
|
||||
openssl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
@ -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
|
||||
|
3
init.sh
3
init.sh
@ -1,6 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Lets wait for the DNS container to start
|
||||
sleep 5
|
||||
|
||||
# Starts each WireGuard configuration file found in /etc/wireguard
|
||||
shopt -s nullglob
|
||||
config_files=(/etc/wireguard/*.conf)
|
||||
|
@ -134,6 +134,6 @@ STATICFILES_DIRS = [
|
||||
DNS_CONFIG_FILE = '/etc/dnsmasq/wireguard_webadmin_dns.conf'
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
WIREGUARD_WEBADMIN_VERSION = 9609
|
||||
WIREGUARD_WEBADMIN_VERSION = 9611
|
||||
|
||||
from wireguard_webadmin.production_settings import *
|
||||
|
Loading…
Reference in New Issue
Block a user