mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 15:14:03 +03:00
Simplify the sources
This commit is contained in:
@@ -110,8 +110,8 @@ var (
|
||||
Envar("MTG_STATSD_TAGS").
|
||||
StringMap()
|
||||
|
||||
secret = app.Arg("secret", "Secret of this proxy.").Required().String()
|
||||
adtag = app.Arg("adtag", "ADTag of the proxy.").String()
|
||||
secret = app.Arg("secret", "Secret of this proxy.").Required().HexBytes()
|
||||
adtag = app.Arg("adtag", "ADTag of the proxy.").HexBytes()
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -120,7 +120,7 @@ func init() {
|
||||
|
||||
}
|
||||
|
||||
func main() {
|
||||
func main() { // nolint: gocyclo
|
||||
kingpin.MustParse(app.Parse(os.Args[1:]))
|
||||
|
||||
err := setRLimit()
|
||||
@@ -131,8 +131,9 @@ func main() {
|
||||
conf, err := config.NewConfig(*debug, *verbose,
|
||||
*bindIP, *publicIPv4, *publicIPv6, *statsIP,
|
||||
*bindPort, *publicIPv4Port, *publicIPv6Port, *statsPort, *statsdPort,
|
||||
*secret, *adtag, *statsdIP, *statsdNetwork, *statsdPrefix, *statsdTagsFormat,
|
||||
*statsdIP, *statsdNetwork, *statsdPrefix, *statsdTagsFormat,
|
||||
*statsdTags,
|
||||
*secret, *adtag,
|
||||
)
|
||||
if err != nil {
|
||||
usage(err.Error())
|
||||
|
||||
Reference in New Issue
Block a user