You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: postgres/src/config.rs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ use tokio_postgres::{Error, Socket};
41
41
/// can be specified, separated by commas. Each host will be tried in turn when connecting. Required if connecting
42
42
/// with the `connect` method.
43
43
/// * `sslnegotiation` - TLS negotiation method. If set to `direct`, the client will perform direct TLS handshake, this only works for PostgreSQL 17 and newer.
44
+
/// Note that you will need to setup ALPN of TLS client configuration to `postgresql` when using direct TLS.
44
45
/// If set to `postgres`, the default value, it follows original postgres wire protocol to perform the negotiation.
45
46
/// * `hostaddr` - Numeric IP address of host to connect to. This should be in the standard IPv4 address format,
46
47
/// e.g., 172.28.40.9. If your machine supports IPv6, you can also use those addresses.
Copy file name to clipboardExpand all lines: tokio-postgres/src/config.rs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,7 @@ pub enum Host {
117
117
/// can be specified, separated by commas. Each host will be tried in turn when connecting. Required if connecting
118
118
/// with the `connect` method.
119
119
/// * `sslnegotiation` - TLS negotiation method. If set to `direct`, the client will perform direct TLS handshake, this only works for PostgreSQL 17 and newer.
120
+
/// Note that you will need to setup ALPN of TLS client configuration to `postgresql` when using direct TLS.
120
121
/// If set to `postgres`, the default value, it follows original postgres wire protocol to perform the negotiation.
121
122
/// * `hostaddr` - Numeric IP address of host to connect to. This should be in the standard IPv4 address format,
122
123
/// e.g., 172.28.40.9. If your machine supports IPv6, you can also use those addresses.
0 commit comments