Initial commit

This commit is contained in:
2016-08-16 00:14:59 +01:00
commit fec014579d
26 changed files with 2947 additions and 0 deletions

21
main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"log"
"os"
"github.com/jimeh/cloudflare-dyndns/updater"
)
func main() {
var email = os.Getenv("CF_EMAIL")
var apiKey = os.Getenv("CF_API")
var host = os.Getenv("CF_HOST")
updater := updater.New(email, apiKey)
err := updater.Update(host)
if err != nil {
log.Fatal(err)
}
}