Affected by GO-2022-0392
and 6 other vulnerabilities
GO-2022-0392: Denial of service in go-ethereum due to CVE-2020-28362 in github.com/ethereum/go-ethereum
GO-2022-0456: DoS via malicious p2p message in Go Ethereum in github.com/ethereum/go-ethereum
GO-2022-0775: Erroneous Proof of Work calculation in geth in github.com/ethereum/go-ethereum
GO-2022-0814: Go Ethereum Denial of Service in github.com/ethereum/go-ethereum
GO-2022-0871: Go Ethereum Improper Input Validation in github.com/ethereum/go-ethereum
GO-2023-2046: Unbounded memory consumption in github.com/ethereum/go-ethereum
GO-2024-2819: Denial of Service in github.com/ethereum/go-ethereum
package
Version:
v1.5.4
Opens a new window with list of versions in this module.
Published: Nov 28, 2016
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1,761
Opens a new window with list of known importers.
Documentation
¶
Package netutil contains extensions to the net package.
CheckRelayIP reports whether an IP relayed from the given sender IP
is a valid connection target.
There are four rules:
- Special network addresses are never valid.
- Loopback addresses are OK if relayed by a loopback host.
- LAN addresses are OK if relayed by a LAN host.
- All other addresses are always acceptable.
IsLAN reports whether an IP is a local network address.
IsSpecialNetwork reports whether an IP is located in a special-use network range
This includes broadcast, multicast and documentation addresses.
IsTemporaryError checks whether the given error should be considered temporary.
Netlist is a list of IP networks.
ParseNetlist parses a comma-separated list of CIDR masks.
Whitespace and extra commas are ignored.
Add parses a CIDR mask and appends it to the list. It panics for invalid masks and is
intended to be used for setting up static lists.
Contains reports whether the given IP is contained in the list.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.