aboutsummaryrefslogtreecommitdiff
path: root/dyndns.go
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-10-16 17:50:51 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-10-16 17:50:51 +0200
commit4f1ee7071853fcf7174d98cfb2518c28f3cbfdd8 (patch)
tree9377f3accd6b26740266c52c1181dd88c7830f3b /dyndns.go
parent91d21727799b5859f6aa3075ba535c31d696158a (diff)
rename config -> conf
Diffstat (limited to 'dyndns.go')
-rw-r--r--dyndns.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dyndns.go b/dyndns.go
index d3b47ba..298ee9f 100644
--- a/dyndns.go
+++ b/dyndns.go
@@ -11,16 +11,16 @@ func main() {
const usage = "override the default config path"
configFile := flag.String("config", "/etc/dyndns.conf", usage)
- config := &config{}
- if err := config.parse(*configFile); err != nil {
+ conf := &config{}
+ if err := conf.parse(*configFile); err != nil {
log.Fatal(err)
}
update4 := make(chan net.IPAddr)
update6 := make(chan net.IPNet)
- go monitor4(update4)
- go monitor6(update6)
+ go monitor4(conf, update4)
+ go monitor6(conf, update6)
for {
select {