dhcp: add note to prevent future mistakes

This commit is contained in:
Michael Stapelberg 2018-06-22 09:02:53 +02:00
parent 4a126f13af
commit 9a14ab0d8d

View File

@ -119,6 +119,9 @@ func dhcpRenew(c *dhcp4client.Client, packet dhcp4.Packet) (bool, dhcp4.Packet,
func main() { func main() {
log.SetFlags(log.LstdFlags | log.Lshortfile) log.SetFlags(log.LstdFlags | log.Lshortfile)
// NOTE: cannot gokrazy.WaitForClock() here, since the clock can only be
// initialized once the network is up.
eth0, err := net.InterfaceByName("eth0") eth0, err := net.InterfaceByName("eth0")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)