From 8072801bf001c9270a6a5ef488f77f8cebe80f01 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sun, 6 Aug 2017 18:26:38 +0300 Subject: [PATCH] fix init order of sockets for remote commands --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index fa980c9..b8f4889 100644 --- a/main.go +++ b/main.go @@ -51,6 +51,9 @@ func main() { flag.Parse() + gSocketProt = gDefaultSocketProt + gSocketPath = gDefaultSocketPath + if *showDoc { fmt.Print(genDocString) return @@ -74,9 +77,6 @@ func main() { defer pprof.StopCPUProfile() } - gSocketProt = gDefaultSocketProt - gSocketPath = gDefaultSocketPath - if *serverMode { gServerLogPath = filepath.Join(os.TempDir(), fmt.Sprintf("lf.%s.server.log", gUser.Username)) serve()