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:
parent
927c37219d
commit
e036d35bf8
1 changed files with 1 additions and 0 deletions
|
@ -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}')
|
||||
|
|
Loading…
Reference in a new issue