Affected by GO-2022-0894
and 3 other vulnerabilities
GO-2022-0894: Hashicorp Consul Missing SSL Certificate Validation in github.com/hashicorp/consul
GO-2022-0895: HashiCorp Consul L7 deny intention results in an allow action in github.com/hashicorp/consul
GO-2022-1029: HashiCorp Consul vulnerable to authorization bypass in github.com/hashicorp/consul
GO-2023-1827: Hashicorp Consul vulnerable to denial of service in github.com/hashicorp/consul
package
Version:
v1.10.0-beta4
Opens a new window with list of versions in this module.
Published: Jun 10, 2021
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 174
Opens a new window with list of known importers.
Documentation
¶
FormatAddressPort Helper for net.JoinHostPort that takes int for port
GetPrivateIPv4 returns the list of private network IPv4 addresses on
all active interfaces.
GetPublicIPv6 returns the list of all public IPv6 addresses
on all active interfaces.
func IsAny(ip interface{}) bool
IsAny checks if the given ip address is an IPv4 or IPv6 ANY address. ip
can be either a *net.IP or a string. It panics on another type.
func IsAnyV4(ip interface{}) bool
IsAnyV4 checks if the given ip address is an IPv4 ANY address. ip
can be either a *net.IP or a string. It panics on another type.
func IsAnyV6(ip interface{}) bool
IsAnyV6 checks if the given ip address is an IPv6 ANY address. ip
can be either a *net.IP or a string. It panics on another type.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.