clone from danieldin95

This commit is contained in:
sicheng
2022-07-29 23:38:54 +08:00
commit ac4f79bbf4
1931 changed files with 568263 additions and 0 deletions

20
cmd/proxy/main.go Executable file
View File

@@ -0,0 +1,20 @@
package main
import (
"github.com/luscis/openlan/pkg/config"
"github.com/luscis/openlan/pkg/libol"
"github.com/luscis/openlan/pkg/proxy"
)
func main() {
c := config.NewProxy()
libol.SetLogger(c.Log.File, c.Log.Verbose)
p := proxy.NewProxy(c)
libol.PreNotify()
p.Initialize()
libol.Go(p.Start)
libol.SdNotify()
libol.Wait()
p.Stop()
}