fix init order of sockets for remote commands
This commit is contained in:
1 parent
cb577a4c3a
commit
8072801bf0
1 file changed
+3
-3
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user