add cli option to update ip based on the dyndns

This commit is contained in:
Viktor Barzin 2023-05-10 15:42:57 +00:00
parent a54d0777a9
commit e9dcb3840f
2 changed files with 51 additions and 8 deletions

View file

@ -178,7 +178,7 @@ func run() error {
currIP, newIP := publicDNSIps[0], dynamicDNSIps[0]
if currIP.Equal(newIP) {
glog.Infof("IPs of dyndns and current ip match, nothing to do: current=%s, dyndns=%s", currIP, newIP)
// return nil // TODO: uncomment
return nil
}
// setup git repo
gitFs, err := NewGitFS(repository)