mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-26 09:10:13 +00:00
Also validate IPV6 in the setdns
function
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
3aaf9d89b3
commit
3205606fc3
2 changed files with 19 additions and 1 deletions
|
@ -260,7 +260,7 @@ SetDNSServers() {
|
|||
local ip
|
||||
ip="${array[index]//\\#/#}"
|
||||
|
||||
if valid_ip "${ip}" ; then
|
||||
if valid_ip "${ip}" || valid_ip6 "${ip}" ; then
|
||||
add_setting "PIHOLE_DNS_$((index+1))" "${ip}"
|
||||
else
|
||||
echo -e " ${CROSS} Invalid IP has been passed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue