From a215971e91df07f19ea6e0e305a4fe2ae7158ae4 Mon Sep 17 00:00:00 2001 From: ziwen <1096693846@qq.com> Date: Fri, 3 Mar 2023 16:05:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E2=80=9Copts=5F.connectProperties?= =?UTF-8?q?=E2=80=9D=20didn't=20update=20when=20copyed=20and=20assigned?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/connect_options.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/connect_options.cpp b/src/connect_options.cpp index 37ab5c38..4f6b9004 100644 --- a/src/connect_options.cpp +++ b/src/connect_options.cpp @@ -133,6 +133,9 @@ void connect_options::update_c_struct() opts_.serverURIs = serverURIs_->c_arr(); } + //Connect Properties + opts_.connectProperties = const_cast(&props_.c_struct()); + // HTTP & Proxy opts_.httpProxy = c_str(httpProxy_);