mirror of
https://github.com/luscis/openlan.git
synced 2025-10-16 14:00:42 +08:00
clone from danieldin95
This commit is contained in:
20
cmd/proxy/main.go
Executable file
20
cmd/proxy/main.go
Executable 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()
|
||||
}
|
Reference in New Issue
Block a user