fix init order of sockets for remote commands
This commit is contained in:
parent
cb577a4c3a
commit
8072801bf0
6
main.go
6
main.go
@ -51,6 +51,9 @@ func main() {
|
|||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
gSocketProt = gDefaultSocketProt
|
||||||
|
gSocketPath = gDefaultSocketPath
|
||||||
|
|
||||||
if *showDoc {
|
if *showDoc {
|
||||||
fmt.Print(genDocString)
|
fmt.Print(genDocString)
|
||||||
return
|
return
|
||||||
@ -74,9 +77,6 @@ func main() {
|
|||||||
defer pprof.StopCPUProfile()
|
defer pprof.StopCPUProfile()
|
||||||
}
|
}
|
||||||
|
|
||||||
gSocketProt = gDefaultSocketProt
|
|
||||||
gSocketPath = gDefaultSocketPath
|
|
||||||
|
|
||||||
if *serverMode {
|
if *serverMode {
|
||||||
gServerLogPath = filepath.Join(os.TempDir(), fmt.Sprintf("lf.%s.server.log", gUser.Username))
|
gServerLogPath = filepath.Join(os.TempDir(), fmt.Sprintf("lf.%s.server.log", gUser.Username))
|
||||||
serve()
|
serve()
|
||||||
|
Loading…
Reference in New Issue
Block a user