Resolve error, only trigger build on master

This commit is contained in:
Tyler
2020-01-25 12:51:20 -05:00
parent 3122096982
commit 991ae3ecb5
4 changed files with 237 additions and 9 deletions

View File

@ -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
}