Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
4b2a062a
Commit
4b2a062a
authored
Jul 26, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feature: Allow actually using more than one upstream
parent
bde17102
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
src/slave.c
src/slave.c
+14
-1
No files found.
src/slave.c
View file @
4b2a062a
...
...
@@ -402,7 +402,20 @@ static void *start_relay_stream (void *arg)
ICECAST_LOG_INFO
(
"Starting relayed source at mountpoint
\"
%s
\"
"
,
relay
->
config
->
localmount
);
do
{
client
=
open_relay_connection
(
relay
,
NULL
);
size_t
i
;
for
(
i
=
0
;
i
<
relay
->
config
->
upstreams
;
i
++
)
{
ICECAST_LOG_DEBUG
(
"For relay on mount
\"
%s
\"
, trying upstream #%zu"
,
relay
->
config
->
localmount
,
i
);
client
=
open_relay_connection
(
relay
,
&
(
relay
->
config
->
upstream
[
i
]));
if
(
client
)
break
;
}
/* if we have no upstreams defined, use the default upstream */
if
(
!
relay
->
config
->
upstreams
)
{
ICECAST_LOG_DEBUG
(
"For relay on mount
\"
%s
\"
with no upstreams trying upstream default"
,
relay
->
config
->
localmount
);
client
=
open_relay_connection
(
relay
,
NULL
);
}
if
(
client
==
NULL
)
continue
;
...
...
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