|
@@ -62,10 +62,6 @@ func init() {
|
|
|
VERSION = VERSION + "/" + gitVersion
|
|
|
}
|
|
|
|
|
|
- if *memprofile != "" {
|
|
|
- runtime.MemProfileRate = 1024
|
|
|
- }
|
|
|
-
|
|
|
log.SetPrefix("geodns ")
|
|
|
log.SetFlags(log.Lmicroseconds | log.Lshortfile)
|
|
|
}
|
|
@@ -73,6 +69,10 @@ func init() {
|
|
|
func main() {
|
|
|
flag.Parse()
|
|
|
|
|
|
+ if *memprofile != "" {
|
|
|
+ runtime.MemProfileRate = 1024
|
|
|
+ }
|
|
|
+
|
|
|
if *flagShowVersion {
|
|
|
fmt.Println("geodns", VERSION, buildTime)
|
|
|
os.Exit(0)
|