diff options
-rw-r--r-- | rpc.go | 2 | ||||
-rw-r--r-- | server.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -22,7 +22,7 @@ func init() { rpc.HandleHTTP() } -func RegisterRPC(s *Server) error { +func registerRPC(s *Server) error { return rpc.Register(&GoXY{s}) } @@ -60,7 +60,7 @@ func NewServer(dataFile, listenWWW, listenTLS, listenRPC string) (*Server, error if dataFile != "" { server.Load(dataFile) } - RegisterRPC(server) + registerRPC(server) http.Handle("/debug/route", server) return server, server.UpdateMux() } |