diff options
-rw-r--r-- | dyndns.go | 4 | ||||
-rw-r--r-- | monitor.go | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -15,8 +15,8 @@ func main() { logger.Fatal(err) } - update4 := make(chan net.IPAddr) - update6 := make(chan net.IPNet) + update4 := make(chan *net.IPAddr) + update6 := make(chan *net.IPNet) go monitor4(conf, update4) go monitor6(conf, update6) @@ -5,7 +5,7 @@ import ( "time" ) -func monitor4(conf *config, update4 chan<- net.IPAddr) { +func monitor4(conf *config, update4 chan<- *net.IPAddr) { refresh := time.NewTicker(conf.Interval) var prevAddr4 *net.IPAddr @@ -42,7 +42,7 @@ func monitor4(conf *config, update4 chan<- net.IPAddr) { } } -func monitor6(conf *config, update6 chan<- net.IPNet) { +func monitor6(conf *config, update6 chan<- *net.IPNet) { refresh := time.NewTicker(conf.Interval) var prevPrefix6 *net.IPNet |