parent
7950291db6
commit
f1e4ee0662
@ -27,6 +27,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/gokrazy/gokrazy"
|
||||||
"github.com/libdns/cloudflare"
|
"github.com/libdns/cloudflare"
|
||||||
"github.com/libdns/libdns"
|
"github.com/libdns/libdns"
|
||||||
"github.com/rtr7/router7/internal/dyndns"
|
"github.com/rtr7/router7/internal/dyndns"
|
||||||
@ -126,6 +127,9 @@ func main() {
|
|||||||
}
|
}
|
||||||
b, err := ioutil.ReadFile(*configFile)
|
b, err := ioutil.ReadFile(*configFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if os.IsNotExist(err) {
|
||||||
|
gokrazy.DontStartOnBoot()
|
||||||
|
}
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
if err := json.Unmarshal(b, &config); err != nil {
|
if err := json.Unmarshal(b, &config); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user