-Create new development-v2 branch to work on simpleadmin v2
-Merged @dr-dolomite work from:
2d197220a4
Co-Authored-By: Russel Yasol <73575327+dr-dolomite@users.noreply.github.com>
20 lines
323 B
Bash
20 lines
323 B
Bash
#!/bin/bash
|
|
|
|
# Check iptables for ttlvalue
|
|
ttlvalue=$(iptables -t mangle -vnL | awk '/TTL/ {print $13; exit}')
|
|
ttlenabled=true;
|
|
|
|
# Set Variables
|
|
if [ -z "${ttlvalue}" ]; then
|
|
ttlvalue=0
|
|
ttlenabled=false
|
|
fi
|
|
|
|
echo "Content-type: text/json"
|
|
echo ""
|
|
cat <<EOT
|
|
{
|
|
"isEnabled": $ttlenabled,
|
|
"ttl": $ttlvalue
|
|
}
|
|
EOT |