Skip to content

Commit 6c514c9

Browse files
authored
Merge baa233e into cfc1538
2 parents cfc1538 + baa233e commit 6c514c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/events/eventstream.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,8 @@ func (a *eventStream) performActionWithRetry(batchNumber uint64, events []*event
764764
func (a *eventStream) isAddressUnsafe(ip *net.IPAddr) bool {
765765
ip4 := ip.IP.To4()
766766
return !a.allowPrivateIPs &&
767-
(ip4[0] == 0 ||
767+
(len(ip4) < 1 ||
768+
ip4[0] == 0 ||
768769
ip4[0] >= 224 ||
769770
ip4[0] == 127 ||
770771
ip4[0] == 10 ||

0 commit comments

Comments
 (0)