mirror of
1
0
Fork 0

added the #{wan_ip_v4} and #{wan_ip_v6} custom variable examples, resolves #281

This commit is contained in:
Gregory Pakosz 2024-01-21 21:31:47 +01:00
parent eca5fb621b
commit b70400e1ee
1 changed files with 10 additions and 0 deletions

View File

@ -445,6 +445,16 @@ tmux_conf_uninstall_plugins_on_reload=true
# ping -c 1 1.1.1.1 >/dev/null 2>&1 && printf '✔' || printf '✘'
# }
#
# wan_ip_v4() {
# curl -f -s -m 2 -4 ifconfig.me
# sleep 300 # sleep for 5 minutes, throttle network requests whatever the value of status-interval
# }
#
# wan_ip_v6() {
# curl -f -s -m 2 -6 ifconfig.me
# sleep 300 # sleep for 5 minutes, throttle network requests whatever the value of status-interval
# }
#
# "$@"
# # /!\ do not remove the previous line
# # do not write below this line