Export to GitHub

coturn - issue #6

(patch provided) Add support for hostnames in listening-ip and relay-ip fields


Posted on Sep 8, 2014 by Happy Cat

Hi,

The attached patch allows the listening-ip and relay-ip configuration fields to contain a hostname, which is then resolved with getaddrinfo(). Tested under Linux and OSX.

Rationale:

In some environments (for example, Google Cloud Servers) the host gets a dynamic private IPv4 upon restart which may change at any time. Fortunately an alias for the private IP is automatically added into /etc/hosts. For some reasons one may need to make Coturn to just listen into the private address and avoid IP autodiscovery. The patch makes this scenario easier to live with.

Attachments

Comment #1

Posted on Sep 8, 2014 by Happy Giraffe

will be fixed in the next version

Comment #2

Posted on Sep 8, 2014 by Happy Cat

Thanks a lot!

Comment #3

Posted on Sep 9, 2014 by Happy Giraffe

(No comment was entered for this change.)

Comment #4

Posted on Oct 13, 2014 by Happy Giraffe

Fixed in 4.2.1.2

Status: Fixed

Labels:
Type-Enhancement Priority-Medium