Skip to content

Commit a64e5c4

Browse files
committed
Allow public key retrieval over loopback connection. Fixes #1542
1 parent 9c242cc commit a64e5c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Core/ServerSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ private async Task<string> GetRsaPublicKeyAsync(string switchRequestName, Connec
996996
}
997997
}
998998

999-
if (cs.AllowPublicKeyRetrieval)
999+
if (cs.AllowPublicKeyRetrieval || m_isLoopbackConnection)
10001000
{
10011001
// request the RSA public key
10021002
var payloadContent = switchRequestName == "caching_sha2_password" ? (byte) 0x02 : (byte) 0x01;

0 commit comments

Comments
 (0)