versatica / mediasoup

Cutting Edge WebRTC Video Conferencing
https://mediasoup.org
ISC License
6.18k stars 1.12k forks source link

announced_ip can also be a hostname (not possible in Rust) #1321

Closed ibc closed 8 months ago

ibc commented 8 months ago

According to the docs, announcedIp (or announced_ip in Rust) in TransportListenInfo can be a IPv4 or a IPv6. However, it should be possible that it's also a hostname since that's a very common use case in WebRTC app deployments.

Funny thing is that it works perfect in Node if we pass announcedIp: "some-domain.org" (since nothing in Node or C++ validates whether it's a IP or not). However: