From 0da72a5cb2d7602854145da92e4bb6fba003474b Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Wed, 23 Mar 2022 07:23:44 -0400 Subject: [PATCH] ndp: modify NewCaptivePortal error text Signed-off-by: Matt Layher --- option.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/option.go b/option.go index dcb3c94..e7ad2af 100644 --- a/option.go +++ b/option.go @@ -672,7 +672,7 @@ func NewCaptivePortal(uri string) (*CaptivePortal, error) { // Try to comply with the max limit for DHCPv4. if len(uri) > 255 { - return nil, errors.New("ndp: Captive-Portal option URI is too long") + return nil, errors.New("ndp: captive portal option URI is too long") } // TODO(mdlayher): a URN is almost a URL, but investigate compliance with @@ -691,7 +691,7 @@ func NewCaptivePortal(uri string) (*CaptivePortal, error) { // kind of path appended. for _, s := range strings.Split(urn.Path, "/") { if ip, err := netip.ParseAddr(s); err == nil { - return nil, fmt.Errorf("ndp: Captive-Portal option URIs should not contain IP addresses: %s", ip) + return nil, fmt.Errorf("ndp: captive portal option URIs should not contain IP addresses: %s", ip) } }