Files
sower/main.go
T
2018-12-16 23:14:58 +08:00

21 lines
420 B
Go

package main
import (
"github.com/golang/glog"
"github.com/wweir/sower/conf"
"github.com/wweir/sower/dns"
"github.com/wweir/sower/proxy"
)
func main() {
conf := conf.Conf
glog.Infoln("Starting:", conf)
if conf.ServerAddr == "" {
proxy.StartServer(conf.NetType, conf.ServerPort, conf.Password)
} else {
go dns.StartDNS(conf.DnsServer)
proxy.StartClient(conf.NetType, conf.ServerAddr, conf.Password)
}
}