server: tell tun2 to listen and serve
This commit is contained in:
parent
2ab2f2d762
commit
5fe4d2ea06
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue