Start making it so I can configure things, so I can configure it to read the netDb I already have and attempt to make a connection. Implement a reseed puller, or at least most of one.

This commit is contained in:
eyedeekay
2024-06-29 00:23:42 -04:00
parent ac705dee76
commit 58e8f78c56
14 changed files with 57 additions and 382 deletions

View File

@ -1,12 +1,18 @@
package main
import (
"github.com/go-i2p/go-i2p/lib/config"
"github.com/go-i2p/go-i2p/lib/router"
"github.com/go-i2p/go-i2p/lib/util/signals"
log "github.com/sirupsen/logrus"
"flag"
)
func main() {
netDbPath := flag.String("netDb", config.DefaultNetDbConfig.Path, "Path to the netDb")
flag.Parse()
config.RouterConfigProperties.NetDb.Path = *netDbPath
go signals.Handle()
log.Info("parsing i2p router configuration")