Skip to content

Commit c17e258

Browse files
authored
service: fix typo in variable name (#3575)
1 parent 650f2d5 commit c17e258

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎service/internal/sameuser/sameuser_linux.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,18 @@ func CanAccept(listenAddr, localAddr, remoteAddr net.Addr) bool {
111111
if !ok || !laddr.IP.IsLoopback() {
112112
return true
113113
}
114-
remoteaAddrTCP := remoteAddr.(*net.TCPAddr)
114+
remoteAddrTCP := remoteAddr.(*net.TCPAddr)
115115
localAddrTCP := localAddr.(*net.TCPAddr)
116116

117-
same, err := sameUserForRemoteAddr(localAddrTCP, remoteaAddrTCP)
117+
same, err := sameUserForRemoteAddr(localAddrTCP, remoteAddrTCP)
118118
if err != nil {
119119
log.Printf("cannot check remote address: %v", err)
120120
}
121121
if !same {
122122
if logflags.Any() {
123-
log.Printf("closing connection from different user (%v): connections to localhost are only accepted from the same UNIX user for security reasons", remoteaAddrTCP)
123+
log.Printf("closing connection from different user (%v): connections to localhost are only accepted from the same UNIX user for security reasons", remoteAddrTCP)
124124
} else {
125-
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)
125+
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)
126126
}
127127
return false
128128
}

0 commit comments

Comments
 (0)