voc / srtrelay

SRT relay server for distributing media streams to multiple clients.
MIT License
134 stars 37 forks source link

add option to configure multiple listening addresses #14

Closed Garionion closed 2 years ago

Garionion commented 3 years ago

this PR adds the option to configure multiple addresses directly instead of relying on DNS

However, I discovered a bug in srt (i guess), where I can only listen on one Address for both IPv4 and IPv6 at a time. the second Address of a type fails with Error in srt_listen but i guess this is not a bug introduced by this PR so … EDIT: apparently this error does not occur, if i use different ports … i'm confused

Garionion commented 3 years ago

Just for the record: I've done all the requested changes, but when i want to listen on all v6 addresses, i get:

srtrelay on  master [!?] via  v1.16.5 
❯ ./srtrelay -addresses :1337
2021/07/02 15:16:34 Config file not found, using defaults
2021/07/02 15:16:34 SRT Listening on 0.0.0.0:1337
2021/07/02 15:16:34 Listen failed for [::]:1337 : Error in CreateAddrInet, LookupIP

I found this issue but it does not relate to the problem i have here?

iSchluff commented 2 years ago

Rebased and merged to master. The fix for the issue above is in the latest commit. Thanks a lot