From c17e258895cf9f360c81a1a79656e37a23a85dcb Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Sun, 19 Nov 2023 08:32:03 +0200 Subject: [PATCH] service: fix typo in variable name (#3575) --- service/internal/sameuser/sameuser_linux.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/internal/sameuser/sameuser_linux.go b/service/internal/sameuser/sameuser_linux.go index 0048a92a..a9d4fbcb 100644 --- a/service/internal/sameuser/sameuser_linux.go +++ b/service/internal/sameuser/sameuser_linux.go @@ -111,18 +111,18 @@ func CanAccept(listenAddr, localAddr, remoteAddr net.Addr) bool { if !ok || !laddr.IP.IsLoopback() { return true } - remoteaAddrTCP := remoteAddr.(*net.TCPAddr) + remoteAddrTCP := remoteAddr.(*net.TCPAddr) localAddrTCP := localAddr.(*net.TCPAddr) - same, err := sameUserForRemoteAddr(localAddrTCP, remoteaAddrTCP) + same, err := sameUserForRemoteAddr(localAddrTCP, remoteAddrTCP) if err != nil { log.Printf("cannot check remote address: %v", err) } if !same { if logflags.Any() { - log.Printf("closing connection from different user (%v): connections to localhost are only accepted from the same UNIX user for security reasons", remoteaAddrTCP) + log.Printf("closing connection from different user (%v): connections to localhost are only accepted from the same UNIX user for security reasons", remoteAddrTCP) } else { - fmt.Fprintf(os.Stderr, "closing connection from different user (%v): connections to localhost are only accepted from the same UNIX user for security reasons\n", remoteaAddrTCP) + fmt.Fprintf(os.Stderr, "closing connection from different user (%v): connections to localhost are only accepted from the same UNIX user for security reasons\n", remoteAddrTCP) } return false }