First available commit

This commit is contained in:
fatedier
2016-01-27 21:24:36 +08:00
parent 7ea8751e56
commit 7030d16e80
31 changed files with 2295 additions and 0 deletions

30
cmd/frpc/main.go Normal file
View File

@@ -0,0 +1,30 @@
package main
import (
"os"
"sync"
"frp/pkg/utils/log"
)
func main() {
err := LoadConf("./frpc.ini")
if err != nil {
os.Exit(-1)
}
log.InitLog(LogWay, LogFile, LogLevel)
// wait until all control goroutine exit
var wait sync.WaitGroup
wait.Add(len(ProxyClients))
for _, client := range ProxyClients {
go ControlProcess(client, &wait)
}
log.Info("Start frpc success")
wait.Wait()
log.Warn("All proxy exit!")
}