mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
add comment
This commit is contained in:
parent
a5f4285411
commit
a31a7b0ad1
1 changed files with 2 additions and 0 deletions
|
@ -147,9 +147,11 @@ systemctl restart dnsmasq
|
|||
|
||||
ynh_store_file_checksum --file="/etc/dnsmasq.d/$app"
|
||||
|
||||
# get IPv4 for the AGH config file
|
||||
ipv4_route_output=$(echo "$(ip -4 route get 1.2.3.4 2> /dev/null)" | head -n1 | head -n1)
|
||||
ipv4_addr=$(process_ips "$ipv4_route_output")
|
||||
|
||||
# get IPv6 for the AGH config file
|
||||
ipv6_route_output=$(echo "$(ip -6 route get ::1.2.3.4 2> /dev/null)" | head -n1)
|
||||
ipv6_addr=$(process_ips "$ipv6_route_output")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue