Skip to content

Commit 7765db4

Browse files
author
Thomas
committed
fix examples only working with cabundle
1 parent d22257e commit 7765db4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/libdatachannel/src/webrtc_device/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ bool parse_options(int argc, char** argv, struct options& opts) {
196196
opts.caBundle = std::string(curlCaBundle);
197197
}
198198
}
199-
if (!opts.caBundle.has_value()) {
199+
if (opts.caBundle.has_value()) {
200200
std::ifstream f(opts.caBundle.value());
201201
if (!f.good()) {
202202
std::cout << "CA certificate bundle file does not exist: "

examples/libdatachannel/src/webrtc_device_rtsp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ bool parse_options(int argc, char** argv, struct options& opts) {
209209
opts.caBundle = std::string(curlCaBundle);
210210
}
211211
}
212-
if (!opts.caBundle.has_value()) {
212+
if (opts.caBundle.has_value()) {
213213
std::ifstream f(opts.caBundle.value());
214214
if (!f.good()) {
215215
std::cout << "CA certificate bundle file does not exist: "

0 commit comments

Comments
 (0)