[netboot] Fix netboot.Discover local address.

This change fixes the value returned by netboot.Discover("..", false).
It now returns the same address as `netaddr --local` which is the
address that routes from the remote nodename to the local machine.
This is necessary for things like registering a package server
with a target device, since amberctl needs to reach the server running
on the local machine over http.

IN-853 #comment

Change-Id: I1e75d77ed489064a4080d251333351df293cf125
1 file changed
tree: bc415241934e86043e356a4dc5d8ead11f1c7721
  1. bloaty/
  2. botanist/
  3. build/
  4. cache/
  5. cmd/
  6. color/
  7. digest/
  8. elflib/
  9. fastboot/
  10. gndoc/
  11. isatty/
  12. logger/
  13. mdns/
  14. netboot/
  15. ninjalog/
  16. pdu/
  17. qemu/
  18. retry/
  19. runtests/
  20. secrets/
  21. serial/
  22. symbolize/
  23. tap/
  24. telnet/
  25. testrunner/
  26. testsharder/
  27. tftp/
  28. .gitignore
  29. go.mod
  30. go.sum
  31. LICENSE
  32. manifest
  33. PATENTS
  34. README.md
README.md

tools

This repo contains tools used in Fuchsia build and development.

Go packages from here are automatically built and uploaded to CIPD and Google Storage by bots using the tools recipe. To add a tool to the build:

  • Edit the bot config.
  • Find the builder_mixins section with name: "tools".
  • Edit the JSON in properties_j to add a string to the packages list:
"fuchsia.googlesource.com/tools/cmd/your-new-tool"