mirror of
https://github.com/jimeh/cloudflare-dyndns.git
synced 2026-02-19 10:56:42 +00:00
Initial commit
This commit is contained in:
21
main.go
Normal file
21
main.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user