Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(server): Fix link when external IP is IPv6 (#335)
The external IP module can return an IPv6 address, in which case the method to append a port is to wrap it in square brackets before appending the ":%d" port string. Unfortunately Go's IP module does not have a great way to determine whether an address is an IPv6 address, so fall back to counting the number of colons in the result as suggested in https://stackoverflow.com/a/48519490.
- Loading branch information