mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 09:57:17 +01:00
#277 LCD show dynDNS
This commit is contained in:
@@ -163,6 +163,7 @@ if [ "${onionAddress}" != "null" ]; then
|
||||
public_color="${color_green}"
|
||||
torInfo="+ TOR"
|
||||
else
|
||||
|
||||
# IP address
|
||||
networkConnectionsInfo="${color_purple}${networkConnections} ${color_gray}connections"
|
||||
public_addr="${public_ip}:${public_port}"
|
||||
@@ -183,6 +184,25 @@ else
|
||||
# if a LONG IPv6 address dont show "Public" in front to save space
|
||||
public_addr_pre=""
|
||||
fi
|
||||
|
||||
# DynDNS
|
||||
if [ ${#dynDomain} -get 0 ]; then
|
||||
|
||||
#check if dyndns resolves to correct IP
|
||||
ipOfDynDNS=$(getent hosts rootzoll.chickenkiller.com | awk '{ print $1 }')
|
||||
if [ "${ipOfDynDNS}" != "${public_addr}" ]; then
|
||||
public_color="${color_red}"
|
||||
else
|
||||
public_color="${color_yellow}"
|
||||
fi
|
||||
|
||||
# replace IP display with dynDNS
|
||||
public_addr_pre="DynDNS "
|
||||
networkConnectionsInfo=""
|
||||
public_addr="${dynDomain}"
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# LIGHTNING NETWORK
|
||||
|
||||
Reference in New Issue
Block a user