mirror of
https://github.com/luscis/openlan.git
synced 2025-09-26 20:41:29 +08:00
21 lines
349 B
Go
Executable File
21 lines
349 B
Go
Executable File
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()
|
|
}
|