diff --git a/demos/guide/quic-client-block.c b/demos/guide/quic-client-block.c index 9cc3a422038f8c..6822283616f7fb 100644 --- a/demos/guide/quic-client-block.c +++ b/demos/guide/quic-client-block.c @@ -202,11 +202,13 @@ int main(void) goto end; } + /* Set the IP address of the remote peer */ if (!SSL_set_initial_peer_addr(ssl, peer_addr)) { printf("Failed to set the initial peer address\n"); goto end; } + /* Connect to the server and perform the TLS handshake */ if ((ret = SSL_connect(ssl)) < 1) { /* * If the failure is due to a verification error we can get more diff --git a/demos/guide/quic-multi-stream.c b/demos/guide/quic-multi-stream.c index 67f2f836529c4f..7a40d61ad4529c 100644 --- a/demos/guide/quic-multi-stream.c +++ b/demos/guide/quic-multi-stream.c @@ -214,11 +214,13 @@ int main(void) goto end; } + /* Set the IP address of the remote peer */ if (!SSL_set_initial_peer_addr(ssl, peer_addr)) { printf("Failed to set the initial peer address\n"); goto end; } + /* Connect to the server and perform the TLS handshake */ if ((ret = SSL_connect(ssl)) < 1) { /* * If the failure is due to a verification error we can get more diff --git a/doc/man7/ossl-guide-quic-client-block.pod b/doc/man7/ossl-guide-quic-client-block.pod index 8cc6e4f3baffba..33c3bff85282c4 100644 --- a/doc/man7/ossl-guide-quic-client-block.pod +++ b/doc/man7/ossl-guide-quic-client-block.pod @@ -222,6 +222,7 @@ is being connected to. In L above we saved that address away for future use. Now we need to use it via the L function. + /* Set the IP address of the remote peer */ if (!SSL_set_initial_peer_addr(ssl, peer_addr)) { printf("Failed to set the initial peer address\n"); goto end;