ext/libcouchbase/src/instance.cc in libcouchbase-1.0.4 vs ext/libcouchbase/src/instance.cc in libcouchbase-1.1.0
- old
+ new
@@ -127,10 +127,10 @@
return spec.is_explicit_dnssrv() ? LCB_EINVAL : LCB_SUCCESS;
}
const Spechost& host = spec.hosts().front();
lcb_error_t rc = LCB_ERROR;
- Hostlist* hl = dnssrv_getbslist(host.hostname.c_str(), host.isSSL(), rc);
+ Hostlist* hl = dnssrv_getbslist(host.hostname.c_str(), spec.sslopts() & LCB_SSL_ENABLED, rc);
if (hl == NULL) {
lcb_log(LOGARGS(this, INFO), "DNS SRV lookup failed: %s. Ignore this if not relying on DNS SRV records", lcb_strerror(this, rc));
if (spec.is_explicit_dnssrv()) {
return rc;