Skip to content

Commit

Permalink
try not to have port conflicts by not opening ports for foreign calls
Browse files Browse the repository at this point in the history
Were not going to serve media anyway, so reserve port space for my own calls
  • Loading branch information
guss77 committed Dec 31, 2019
1 parent 5f62bfd commit 8ff568b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions daemon/redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,11 @@ static int redis_sfds(struct call *c, struct redis_list *sfds) {
socket_t *sock;
int port;
const char *err;

if (IS_FOREIGN_CALL(c)) {
rlog(LOG_INFO, "Reading foreign call from Redis, skipping opening ports");
return 0;
}

for (i = 0; i < sfds->len; i++) {
rh = &sfds->rh[i];
Expand Down

0 comments on commit 8ff568b

Please sign in to comment.