mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 23:42:23 +00:00
parent
aaccf748ac
commit
15e8fc08ce
1 changed files with 6 additions and 0 deletions
|
@ -617,8 +617,14 @@ func checkIPv6(data string) bool {
|
|||
for i, f := range fragments {
|
||||
if len(f) == 0 {
|
||||
if i == 0 {
|
||||
if len(fragments[1]) != 0 {
|
||||
return false
|
||||
}
|
||||
nums[i] = 0
|
||||
} else if i == l-1 {
|
||||
if len(fragments[i-1]) != 0 {
|
||||
return false
|
||||
}
|
||||
nums[7] = 0
|
||||
} else if hasEmpty {
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue