fix netdb skiplist path

This commit is contained in:
Jeff Becker
2016-08-17 09:28:45 -04:00
parent 13b1639b58
commit 6df749bae4
3 changed files with 7 additions and 10 deletions

View File

@@ -20,13 +20,14 @@ func CreateRouter() (r *Router, err error) {
// create router from configuration
func FromConfig(c *config.RouterConfig) (r *Router, err error) {
r = new(Router)
r.cfg = c
return
}
// run i2p router mainloop
func (r *Router) Run() {
r.ndb = netdb.StdNetDB(r.cfg.NetDb.Path)
// make sure the netdb is ready
err := r.ndb.Ensure()
if err == nil {