Resolve error, only trigger build on master
This commit is contained in:
@ -5,6 +5,7 @@ import (
|
||||
"github.com/fsnotify/fsnotify"
|
||||
"github.com/ryanuber/go-glob"
|
||||
"meow.tf/joker/godns/log"
|
||||
"meow.tf/joker/godns/utils"
|
||||
"os"
|
||||
"regexp"
|
||||
"strings"
|
||||
@ -109,7 +110,7 @@ func (f *FileHosts) Refresh() {
|
||||
|
||||
ip := m[1]
|
||||
|
||||
if !isIP(ip) {
|
||||
if !utils.IsIP(ip) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user