From 409b0f2b7d375373477fe700d1443bd80db6557e Mon Sep 17 00:00:00 2001 From: Elazar Gershuni Date: Tue, 12 Mar 2024 14:11:35 +0200 Subject: [PATCH] fix typo Signed-off-by: Elazar Gershuni --- pkg/ipblock/ipblock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ipblock/ipblock.go b/pkg/ipblock/ipblock.go index d9510db..b8f979e 100644 --- a/pkg/ipblock/ipblock.go +++ b/pkg/ipblock/ipblock.go @@ -339,8 +339,8 @@ func intervalToCidrList(ipStart, ipEnd int64) []string { } // IPBlockFromIPRangeStr returns IPBlock object from input IP range string (example: "169.255.0.0-172.15.255.255") -func IPBlockFromIPRangeStr(ipRagneStr string) (*IPBlock, error) { - ipAddresses := strings.Split(ipRagneStr, dash) +func IPBlockFromIPRangeStr(ipRangeStr string) (*IPBlock, error) { + ipAddresses := strings.Split(ipRangeStr, dash) if len(ipAddresses) != 2 { return nil, errors.New("unexpected ipRange str") }