File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
#include < aws/crt/external/cJSON.h>
8
8
#include < aws/crt/io/TlsOptions.h>
9
9
10
- #include < aws/common/ref_count.h>
11
10
#include < aws/auth/auth.h>
11
+ #include < aws/common/ref_count.h>
12
12
#include < aws/http/http.h>
13
13
#include < aws/mqtt/mqtt.h>
14
14
Original file line number Diff line number Diff line change @@ -290,7 +290,10 @@ namespace Aws
290
290
291
291
proxy_options.host = aws_byte_cursor_from_c_str (proxy_config.HostName .c_str ());
292
292
proxy_options.port = proxy_config.Port ;
293
- proxy_options.tls_options = proxy_config.TlsOptions ->GetUnderlyingHandle ();
293
+ if (proxy_config.TlsOptions .has_value ())
294
+ {
295
+ proxy_options.tls_options = proxy_config.TlsOptions ->GetUnderlyingHandle ();
296
+ }
294
297
proxy_options.auth_type = (enum aws_http_proxy_authentication_type)proxy_config.AuthType ;
295
298
proxy_options.auth_username = aws_byte_cursor_from_c_str (proxy_config.BasicAuthUsername .c_str ());
296
299
proxy_options.auth_password = aws_byte_cursor_from_c_str (proxy_config.BasicAuthPassword .c_str ());
You can’t perform that action at this time.
0 commit comments