Commit e3042777 authored by Tobias's avatar Tobias
Browse files

use guest login credentials if no login credentials where given for SMB/DSM

parent 95a0a85f
......@@ -73,6 +73,12 @@ NSString *const VLCNetworkServerProtocolIdentifierSMB = @"smb";
+ (instancetype)SMBNetworkServerBrowserWithURL:(NSURL *)url username:(NSString *)username password:(NSString *)password workgroup:(NSString *)workgroup {
BOOL guestLogin = username.length == 0 && password.length == 0;
if (guestLogin) {
username = @"Guest";
password = @"Guest";
}
VLCMedia *media = [VLCMedia mediaWithURL:url];
NSDictionary *mediaOptions = @{@"smb-user" : username ?: @"",
@"smb-pwd" : password ?: @"",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment