Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ private void clearCachedStatements() {
}
}

public boolean isUsingDomainSocket() {
return socket.remoteAddress().isDomainSocket();
}

@Override
public String system() {
return metaData.system();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected final void handleAuthMoreData(byte[] password, ByteBuf payload) {
} else {
byte flag = payload.readByte();
if (flag == FULL_AUTHENTICATION_STATUS_FLAG) {
if (encoder.socketConnection.isSsl()) {
if (encoder.socketConnection.isSsl() || encoder.socketConnection.isUsingDomainSocket()) {
// send the non-scrambled password directly since it's on a secure connection
int nonScrambledPasswordPacketLength = password.length + 1;
ByteBuf nonScrambledPasswordPacket = allocateBuffer(nonScrambledPasswordPacketLength + 4);
Expand Down
Loading