mirror of
https://github.com/joohoi/acme-dns.git
synced 2025-07-10 15:57:51 +07:00
Try to read config from under /etc (#18)
This commit is contained in:
11
util.go
11
util.go
@ -3,14 +3,23 @@ package main
|
||||
import (
|
||||
"crypto/rand"
|
||||
"math/big"
|
||||
"os"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/BurntSushi/toml"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/miekg/dns"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func fileExists(fname string) bool {
|
||||
_, err := os.Stat(fname)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func readConfig(fname string) DNSConfig {
|
||||
var conf DNSConfig
|
||||
// Practically never errors
|
||||
|
Reference in New Issue
Block a user