1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00
This commit is contained in:
OniriCorpe 2023-12-31 00:56:29 +01:00
parent 29cd1df5c3
commit dee489790d

View file

@ -140,6 +140,10 @@ ipv4_addr=$(process_ips "$(ip -4 address show "$ipv4_interface" 2> /dev/null | g
# the 'sed' is used to get rid of the network prefix ('/64' for example)
ipv6_addr=$(process_ips "$(ip -6 address show "$ipv6_interface" 2> /dev/null | grep inet | sed 's&/.*&&')")
# debug
ynh_print_info --message="IPv4: $ipv4_addr"
ynh_print_info --message="IPv6: $ipv6_addr"
# update the IP adresses in the AGH config file
update_agh_ip_config