mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-11 01:33:58 +08:00
215f6ed525
* Remove length checking from TxtNoMultipleStrings All functions in should test for only one condition. There already is a function that tests for long TXT records: TxtNoLongStrings. Add calls to TxtNoLongStrings in all providers that use TxtNoMultipleStrings, to keep functionality, except for NS1 and ClouDNS, which allow for any TXT record length, but not for multiple strings per TXT. * Release v3.13.0 * Release v3.13.0 Co-authored-by: Norman Stetter <norman.stetter@zeit.de>
36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"os"
|
|
"runtime/debug"
|
|
|
|
"github.com/StackExchange/dnscontrol/v3/commands"
|
|
"github.com/StackExchange/dnscontrol/v3/pkg/version"
|
|
_ "github.com/StackExchange/dnscontrol/v3/providers/_all"
|
|
)
|
|
|
|
//go:generate go run build/generate/generate.go build/generate/featureMatrix.go
|
|
|
|
// Version management. Goals:
|
|
// 1. Someone who just does "go get" has at least some information.
|
|
// 2. If built with build/build.go, more specific build information gets put in.
|
|
// Update the number here manually each release, so at least we have a range for go-get people.
|
|
var (
|
|
SHA = ""
|
|
Version = "v3.13.0"
|
|
BuildTime = ""
|
|
)
|
|
|
|
func main() {
|
|
version.SHA = SHA
|
|
version.Semver = Version
|
|
version.BuildTime = BuildTime
|
|
|
|
log.SetFlags(log.LstdFlags | log.Lshortfile)
|
|
if info, ok := debug.ReadBuildInfo(); !ok && info == nil {
|
|
fmt.Fprint(os.Stderr, "Warning: dnscontrol was built without Go modules. See https://github.com/StackExchange/dnscontrol#from-source for more information on how to build dnscontrol correctly.\n\n")
|
|
}
|
|
os.Exit(commands.Run("dnscontrol " + version.Banner()))
|
|
}
|