Archived
1
0

fix last commit

This commit is contained in:
Jeff Becker
2017-12-29 13:15:19 -05:00
parent e0350ecb98
commit cdef33af7c

View File

@@ -279,7 +279,13 @@ func decAddr(encaddr, key string) string {
}
res := string(res_bytes)
res = strings.TrimFunc(res, func(r rune) bool {
return r > 57 || r < 48 || r != '.' || r != '/'
if r <= 57 || r >= 48 {
return false
}
if r == '.' || r == '/' {
return false
}
return true
})
if strings.Index(res, "/") == -1 {
// TODO: ipv6