server: tell tun2 to listen and serve

This commit is contained in:
Cadey Ratio 2017-03-26 13:11:57 -07:00
parent 2ab2f2d762
commit 5fe4d2ea06
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ func New(cfg Config) (*Server, error) {
return nil, err
}
s.ts = ts
go ts.ListenAndServe()
rpcs.RegisterName("Urls", &RPCServer{Server: s})
go rpcs.Accept(l)