When using the Pi-hole DHCP server, local host names are called "something.local". Thir PR ensures that clients that are connected via VPN are augmented by a similar suffix like "someother.vpn".

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/1718/head
DL6ER 7 years ago
parent de46dbd56f
commit 39ab1e1ea7
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

@ -503,7 +503,7 @@ gravity_ParseLocalDomains() {
# Add additional LAN hosts provided by OpenVPN (if available)
if [[ -f "${VPNList}" ]]; then
awk -F, '{printf $2"\t"$1"\n"}' "${VPNList}" >> "${localList}"
awk -F, '{printf $2"\t"$1".vpn\n"}' "${VPNList}" >> "${localList}"
fi
}

Loading…
Cancel
Save