Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
293cd2f0
Commit
293cd2f0
authored
Jul 25, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/rc.c: removed useless code for the rc-host option.
parent
58330471
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
29 deletions
+6
-29
modules/control/rc.c
modules/control/rc.c
+6
-29
No files found.
modules/control/rc.c
View file @
293cd2f0
...
@@ -206,39 +206,16 @@ static int Activate( vlc_object_t *p_this )
...
@@ -206,39 +206,16 @@ static int Activate( vlc_object_t *p_this )
if
(
(
i_socket
==
-
1
)
&&
if
(
(
i_socket
==
-
1
)
&&
(
psz_host
=
config_GetPsz
(
p_intf
,
"rc-host"
)
)
!=
NULL
)
(
psz_host
=
config_GetPsz
(
p_intf
,
"rc-host"
)
)
!=
NULL
)
{
{
char
*
psz_addr
;
vlc_url_t
url
;
vlc_url_t
url
;
memset
(
&
url
,
0
,
sizeof
(
vlc_url_t
)
);
/* If it doesn't include a :, it's a port number rather than an URL */
if
(
strchr
(
psz_host
,
':'
)
)
vlc_UrlParse
(
&
url
,
psz_host
,
0
);
else
url
.
i_port
=
atoi
(
psz_host
);
/* By default, we listen on localhost only for security reasons.
* If you need to listen on all IP addresses, specify 0.0.0.0
*/
if
(
url
.
psz_host
!=
NULL
)
{
psz_addr
=
url
.
psz_host
;
}
else
{
/* Default to IPv4 for now.
* FIXME: should try both IPv4 and IPv6.
*/
vlc_value_t
val
;
var_Create
(
p_this
,
"ipv6"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
vlc_UrlParse
(
&
url
,
psz_host
,
0
);
var_Get
(
p_this
,
"ipv6"
,
&
val
);
psz_addr
=
val
.
b_bool
?
"::1"
:
"127.0.0.1"
;
msg_Dbg
(
p_intf
,
"base %s port %d"
,
url
.
psz_host
,
url
.
i_port
);
}
msg_Dbg
(
p_intf
,
"base %s port %d"
,
psz_addr
,
url
.
i_port
);
if
(
(
i_socket
=
net_ListenTCP
(
p_this
,
psz_addr
,
url
.
i_port
))
==
-
1
)
if
(
(
i_socket
=
net_ListenTCP
(
p_this
,
url
.
psz_host
,
url
.
i_port
))
==
-
1
)
{
{
msg_Warn
(
p_intf
,
"can't listen to %s port %i"
,
psz_addr
,
msg_Warn
(
p_intf
,
"can't listen to %s port %i"
,
url
.
i_port
);
url
.
psz_host
,
url
.
i_port
);
vlc_UrlClean
(
&
url
);
vlc_UrlClean
(
&
url
);
free
(
psz_host
);
free
(
psz_host
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
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