mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-12 18:00:49 +01:00
Fix order of ports
This commit is contained in:
parent
666ecc580f
commit
4b73828c6d
@ -133,8 +133,7 @@ func (s *serviceViaListener) getFirstListenerAvailable() (string, int, error) {
|
|||||||
if runtime.GOOS != "darwin" {
|
if runtime.GOOS != "darwin" {
|
||||||
ips = append([]string{s.wgInterface.Address().IP.String()}, ips...)
|
ips = append([]string{s.wgInterface.Address().IP.String()}, ips...)
|
||||||
}
|
}
|
||||||
//todo change the order back
|
ports := []int{defaultPort, customPort}
|
||||||
ports := []int{customPort, defaultPort}
|
|
||||||
for _, port := range ports {
|
for _, port := range ports {
|
||||||
for _, ip := range ips {
|
for _, ip := range ips {
|
||||||
addrString := fmt.Sprintf("%s:%d", ip, port)
|
addrString := fmt.Sprintf("%s:%d", ip, port)
|
||||||
|
Loading…
Reference in New Issue
Block a user