1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Remove first dot of domain if exist

This commit is contained in:
Ycarus 2019-03-13 18:32:09 +01:00
parent 927c37219d
commit e036d35bf8

View file

@ -34,6 +34,7 @@ _bypass_domain() {
[ -z "$intf" ] && intf="all"
if [ -n "$domain" ]; then
domain=$(echo $domain | sed 's:^\.::')
#logger -t "omr-bypass" "Get IPs of $domain..."
if [ -z $BOOT ]; then
resolve=$(dig a +timeout=3 +nocmd +noall +answer $domain | awk '{print $5}')