From eedb294754e941cbe97b3935ee9d2c79b1e3e277 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 27 Jan 2023 10:38:38 -0800 Subject: [PATCH] lib/netutil: typo fix in the error message --- lib/netutil/proxyprotocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netutil/proxyprotocol.go b/lib/netutil/proxyprotocol.go index c45dd6f60..fd1628a26 100644 --- a/lib/netutil/proxyprotocol.go +++ b/lib/netutil/proxyprotocol.go @@ -99,7 +99,7 @@ func readProxyProto(r io.Reader) (net.Addr, error) { case 1: // ipv4 (aka AF_INET) if len(bb.B) < 12 { - return nil, fmt.Errorf("cannot ipv4 address from proxy protocol block with the length %d bytes; expected at least 12 bytes", len(bb.B)) + return nil, fmt.Errorf("cannot read ipv4 address from proxy protocol block with the length %d bytes; expected at least 12 bytes", len(bb.B)) } remoteAddr := &net.TCPAddr{ IP: net.IPv4(bb.B[0], bb.B[1], bb.B[2], bb.B[3]),