Skip to content

Commit b7d153a

Browse files
committed
server: use Conn.authAllowed in handleAuth
1 parent f4b1d1b commit b7d153a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ func (c *Conn) handleAuth(arg string) {
772772
return
773773
}
774774

775-
if _, isTLS := c.TLSConnectionState(); !isTLS && !c.server.AllowInsecureAuth {
775+
if !c.authAllowed() {
776776
c.writeResponse(523, EnhancedCode{5, 7, 10}, "TLS is required")
777777
return
778778
}

0 commit comments

Comments
 (0)