-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplified packetIO #14
Comments
No, there are 2 reasons to parse authentication packets:
|
We don't need to know, just forward packages in both direction if there is one. (I mean connection phase). In handshake:
TLS is always enabled. If client does not set TLS capability, reject. Anyway, I only need to verify For server, the
Correct. I only need to record but not process.
By this word, I mean authenticator is not for auth anymore. It is more like a part of connection management. Some common parts among |
It's incompatible with the current situation. The client doesn't need to enable TLS when using |
There is a workaround. If it there is no TLS, connect the default backend and pass packets until handshake is finished or |
authenticator.go
. Also, it is more resonable to parse mysql in the net package, rather than in authentication package.PROXYV2
from cliens and act as a client to sendPROXYV2
to servers. Sadly we can not just importblacktear23/go-proxyprotocol
because it only do parsing as a server.The text was updated successfully, but these errors were encountered: