Commit Graph
3 Commits
Author SHA1 Message Date
Jeff Mitchell 2a40a734aa Update preferred endpoint preference order (#1583)
Rather than pick addresses totally at random, this changes the
preference to be private IP4 > public IP4 > DNS. (Ordering is not
guaranteed, but in many cases there will only be one of each type of IP
anyways.) All three of these are preferred over IP6, which also goes
public > private.

This seems likely to match the common case where you're getting into a
machine on the private side from the public side. It's harder to know if
DNS is private or not, so IPs are preferred in this case.
2021-10-08 21:02:29 -04:00
Jeff Mitchell 01d4383c1b Add preferred endpoints logic to API/handler/DB and some CLI bits (#1529) 2021-09-20 12:48:38 -04:00
Jeff Mitchell e07792cf74 Add endpoint preferencer (#1526) 2021-09-13 20:26:54 -04:00