diff --git a/server/server.go b/server/server.go index a92683d..6d0973f 100644 --- a/server/server.go +++ b/server/server.go @@ -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)