Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
2ccfe3ca
Commit
2ccfe3ca
authored
Dec 19, 2007
by
Karl Heyes
Browse files
port 8000 could be set to listen on when not wanted
svn path=/icecast/trunk/icecast/; revision=14314
parent
0e533ac4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cfgfile.c
View file @
2ccfe3ca
...
...
@@ -483,6 +483,14 @@ static void _parse_root(xmlDocPtr doc, xmlNodePtr node,
_parse_security
(
doc
,
node
->
xmlChildrenNode
,
configuration
);
}
}
while
((
node
=
node
->
next
));
/* drop the first listening socket details if more than one is defined, as we only
* have port or listen-socket not both */
if
(
configuration
->
listen_sock_count
>
1
)
{
configuration
->
listen_sock
=
config_clear_listener
(
configuration
->
listen_sock
);
configuration
->
listen_sock_count
--
;
}
}
static
void
_parse_limits
(
xmlDocPtr
doc
,
xmlNodePtr
node
,
...
...
@@ -813,8 +821,10 @@ static void _parse_listen_socket(xmlDocPtr doc, xmlNodePtr node,
}
}
while
((
node
=
node
->
next
));
listener
->
next
=
configuration
->
listen_sock
;
configuration
->
listen_sock
=
listener
;
/* we know there's at least one of these, so add this new one after the first
* that way it can be removed easily later on */
listener
->
next
=
configuration
->
listen_sock
->
next
;
configuration
->
listen_sock
->
next
=
listener
;
configuration
->
listen_sock_count
++
;
if
(
listener
->
shoutcast_mount
)
{
...
...
@@ -825,8 +835,8 @@ static void _parse_listen_socket(xmlDocPtr doc, xmlNodePtr node,
if
(
listener
->
bind_address
)
sc_port
->
bind_address
=
(
char
*
)
xmlStrdup
(
XMLSTR
(
listener
->
bind_address
));
sc_port
->
next
=
configuration
->
listen_sock
;
configuration
->
listen_sock
=
sc_port
;
sc_port
->
next
=
listener
->
next
;
listener
->
next
=
sc_port
;
configuration
->
listen_sock_count
++
;
}
}
...
...
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