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
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -279,7 +279,13 @@ func decAddr(encaddr, key string) string {
} }
res := string(res_bytes) res := string(res_bytes)
res = strings.TrimFunc(res, func(r rune) bool { 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 { if strings.Index(res, "/") == -1 {
// TODO: ipv6 // TODO: ipv6