Affected by GO-2024-3241
and 2 other vulnerabilities
GO-2024-3241: Hashicorp Consul Improper Neutralization of HTTP Headers for Scripting Syntax vulnerability in github.com/hashicorp/consul
GO-2024-3242: Hashicorp Consul Cross-site Scripting vulnerability in github.com/hashicorp/consul
GO-2024-3243: Hashicorp Consul Path Traversal vulnerability in github.com/hashicorp/consul
package
Version:
v1.14.7
Opens a new window with list of versions in this module.
Published: May 16, 2023
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.