Skip to content

Commit 8ff568b

Browse files
committed
try not to have port conflicts by not opening ports for foreign calls
Were not going to serve media anyway, so reserve port space for my own calls
1 parent 5f62bfd commit 8ff568b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

daemon/redis.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,11 @@ static int redis_sfds(struct call *c, struct redis_list *sfds) {
11241124
socket_t *sock;
11251125
int port;
11261126
const char *err;
1127+
1128+
if (IS_FOREIGN_CALL(c)) {
1129+
rlog(LOG_INFO, "Reading foreign call from Redis, skipping opening ports");
1130+
return 0;
1131+
}
11271132

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

0 commit comments

Comments
 (0)