this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(network): add link local unicast support back

Still need it for some environments where there's no DHCP, and might be
useful for IPv6 support in the future.

Khue Doan a21ba808 a09281ae

+4 -1
+1 -1
cmd/nixie/main.go
··· 36 36 if flags.Address == "" { 37 37 address, err = network.DetectServerAddress() 38 38 if err != nil { 39 - log.Fatal("failed to detect server address, please specify --address manually") 39 + log.Fatal("failed to detect server address, please specify --address manually", "error", err) 40 40 } 41 41 } else { 42 42 address = flags.Address
+3
internal/network/ip.go
··· 21 21 // Try to find an IPv4 address to use 22 22 fs := [](func(net.IP) bool){ 23 23 net.IP.IsGlobalUnicast, 24 + net.IP.IsLinkLocalUnicast, 24 25 } 25 26 for _, f := range fs { 26 27 for _, a := range addresses { ··· 28 29 if !ok { 29 30 continue 30 31 } 32 + // TODO support IPv6, probably need to fork pixiecore? 33 + // Reference fork https://github.com/dmitri-d/netboot/tree/dhcpv6 31 34 ip := ipaddr.IP.To4() 32 35 if ip == nil { 33 36 continue