Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
e3042777
Commit
e3042777
authored
Nov 24, 2015
by
Tobias
Browse files
use guest login credentials if no login credentials where given for SMB/DSM
parent
95a0a85f
Changes
1
Hide whitespace changes
Inline
Side-by-side
SharedSources/ServerBrowsing/SMB/VLCLocalNetworkServiceBrowserDSM.m
View file @
e3042777
...
...
@@ -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
?:
@""
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment