Changeset View
Changeset View
Standalone View
Standalone View
smb/kio_smb_browse.cpp
Context not available. | |||||
195 | } | 195 | } | ||
---|---|---|---|---|---|
196 | } | 196 | } | ||
197 | if (surl == QLatin1String("smb://")) { | 197 | if (surl == QLatin1String("smb://")) { | ||
198 | #ifdef HAVE_SMBC_SETOPTIONPROTOCOLS | ||||
199 | // Samba 4.8 changed default 'client max protocol' from NT1 to SMB3, | ||||
200 | // together with fixes of Badlock, it broke browsing smb:// with | ||||
201 | // default settings, because only NT1 (SMB1) protocol can browse network. | ||||
202 | // Samba 4.10 made it possible to set min/max protocol version | ||||
203 | // via libsmbclient API. | ||||
204 | SMBCCTX *smb_context = smbc_set_context(nullptr); | ||||
205 | qCDebug(KIO_SMB) << "Setting client max protocol = NT1 for browsing SMB network"; | ||||
206 | smbc_setOptionProtocols(smb_context, "NT1", "NT1"); | ||||
207 | #endif | ||||
198 | return kurl; //unchanged | 208 | return kurl; //unchanged | ||
199 | } | 209 | } | ||
200 | 210 | | |||
Context not available. |