proxyport/main.go

20 lines
327 B
Go
Raw Normal View History

2023-01-18 14:13:22 +08:00
package main
import (
2023-01-19 11:34:30 +08:00
"flag"
2023-01-18 14:13:22 +08:00
"git.makemake.in/test/mycommon/myconf"
2023-01-18 14:32:14 +08:00
"git.makemake.in/test/mycommon/mylog"
2023-01-18 14:13:22 +08:00
"proxyport/app"
)
2023-01-19 11:34:30 +08:00
var configPath string
2023-01-18 14:13:22 +08:00
func main() {
2023-01-19 11:34:30 +08:00
flag.StringVar(&configPath, "c", "config.toml", "配置文件路径")
flag.Parse()
myconf.Init(configPath, &app.ProxyMap)
2023-04-18 20:55:50 +08:00
defer mylog.Flush()
2023-01-18 14:32:14 +08:00
app.Run()
2023-01-18 14:13:22 +08:00
}