dhcp4/dhcp6: notify dyndns if present
This commit is contained in:
parent
bb6b901b90
commit
7a46d077ee
@ -61,6 +61,9 @@ func logic() error {
|
||||
if err := notify.Process("/user/netconfi", syscall.SIGUSR1); err != nil {
|
||||
log.Printf("notifying netconfig: %v", err)
|
||||
}
|
||||
if err := notify.Process("/user/dyndns", syscall.SIGUSR1); err != nil {
|
||||
log.Printf("notifying dyndns: %v", err)
|
||||
}
|
||||
select {
|
||||
case <-time.After(time.Until(c.Config().RenewAfter)):
|
||||
// fallthrough and renew the DHCP lease
|
||||
|
@ -57,6 +57,9 @@ func logic() error {
|
||||
if err := notify.Process("/user/radvd", syscall.SIGUSR1); err != nil {
|
||||
log.Printf("notifying radvd: %v", err)
|
||||
}
|
||||
if err := notify.Process("/user/dyndns", syscall.SIGUSR1); err != nil {
|
||||
log.Printf("notifying dyndns: %v", err)
|
||||
}
|
||||
select {
|
||||
case <-time.After(time.Until(c.Config().RenewAfter)):
|
||||
// fallthrough and renew the DHCP lease
|
||||
|
Loading…
x
Reference in New Issue
Block a user