Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
683ff74a
Commit
683ff74a
authored
May 23, 2012
by
Konstantin Pavlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upnp: Fix #6250, honor --miface.
parent
0c5887ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.cpp
+9
-3
No files found.
modules/services_discovery/upnp.cpp
View file @
683ff74a
...
...
@@ -110,10 +110,16 @@ static int Open( vlc_object_t *p_this )
if
(
!
(
p_sd
->
p_sys
=
p_sys
)
)
return
VLC_ENOMEM
;
/* Initialize on first IPv4-capable adapter and first open port
* TODO: use UpnpInit2() to utilize IPv6.
*/
#ifdef UPNP_ENABLE_IPV6
char
*
psz_miface
;
psz_miface
=
var_InheritString
(
p_sd
,
"miface"
);
msg_Info
(
p_sd
,
"Initializing libupnp on '%s' interface"
,
psz_miface
);
i_res
=
UpnpInit2
(
psz_miface
,
0
);
free
(
psz_miface
);
#else
/* If UpnpInit2 isnt available, initialize on first IPv4-capable interface */
i_res
=
UpnpInit
(
0
,
0
);
#endif
if
(
i_res
!=
UPNP_E_SUCCESS
)
{
msg_Err
(
p_sd
,
"Initialization failed: %s"
,
UpnpGetErrorMessage
(
i_res
)
);
...
...
Write
Preview
Markdown
is supported
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