Skip to content

Commit

Permalink
Revert changes in strToIPNet func (#174)
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik authored Aug 15, 2024
1 parent 03f6633 commit fdbfcd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/api/networkservice/ipcontext_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ func strToIPNet(in string) *net.IPNet {
if in == "" {
return nil
}
_, ipNet, err := net.ParseCIDR(in)
ip, ipNet, err := net.ParseCIDR(in)
if err != nil {
return nil
}
ipNet.IP = ip
return ipNet
}

0 comments on commit fdbfcd8

Please sign in to comment.