So, as Roger suggested, an obvious solution is to use network.SelectInternalHostPorts() instead of SelectInternalHostPort():
https://github.com/juju/juju/blob/master/apiserver/common/addresses.go#L69
I'll write a patch to do so and verify that it works.
So, as Roger suggested, an obvious solution is to use network. SelectInternalH ostPorts( ) instead of SelectInternalH ostPort( ):
https:/ /github. com/juju/ juju/blob/ master/ apiserver/ common/ addresses. go#L69
I'll write a patch to do so and verify that it works.