Skip to content

Commit 6608f74

Browse files
committed
Default true to always_verify_peer
1 parent 7c6c708 commit 6608f74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

boost/network/protocol/http/client/options.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class client_options {
3333
openssl_sni_hostname_(),
3434
openssl_options_(0),
3535
io_service_(),
36-
always_verify_peer_(false),
36+
always_verify_peer_(true),
3737
timeout_(0) {}
3838

3939
client_options(client_options const& other)
@@ -141,6 +141,8 @@ class client_options {
141141

142142
/// Set whether we always verify the peer on the other side of the HTTPS
143143
/// connection.
144+
///
145+
/// Default: true.
144146
client_options& always_verify_peer(bool v) {
145147
always_verify_peer_ = v;
146148
return *this;

0 commit comments

Comments
 (0)