only allow TLS+onion

This commit is contained in:
idk
2019-06-27 20:52:12 -04:00
parent 57065323c4
commit c754995b8f
3 changed files with 71 additions and 75 deletions

View File

@@ -26,16 +26,10 @@ i2p-tools reseed --signer=you@mail.i2p --netdb=/home/i2p/.i2p/netDb --port=8443
i2p-tools reseed --signer=you@mail.i2p --netdb=/home/i2p/.i2p/netDb --tlsHost=your-domain.tld
```
### Without a webserver, standalone, automatic OnionV3
```
i2p-tools reseed --signer=you@mail.i2p --netdb=/home/i2p/.i2p/netDb --onion
```
### Without a webserver, standalone, automatic OnionV3 with TLS support
```
i2p-tools reseed --signer=you@mail.i2p --netdb=/home/i2p/.i2p/netDb --tlsHost=your-domain.tld --onion
i2p-tools reseed --signer=you@mail.i2p --netdb=/home/i2p/.i2p/netDb --onion
```
If this is your first time running a reseed server (ie. you don't have any existing keys),

View File

@@ -125,8 +125,10 @@ func reseedAction(c *cli.Context) {
tlsHost := c.String("tlsHost")
if c.Bool("onion") {
if tlsHost == "" {
tlsHost = "onion"
}
}
if tlsHost != "" {
tlsKey = c.String("tlsKey")
@@ -195,7 +197,7 @@ func reseedAction(c *cli.Context) {
if c.Duration("stats") != 0 {
go func() {
var mem runtime.MemStats
for _ = range time.Tick(c.Duration("stats")) {
for range time.Tick(c.Duration("stats")) {
runtime.ReadMemStats(&mem)
log.Printf("TotalAllocs: %d Kb, Allocs: %d Kb, Mallocs: %d, NumGC: %d", mem.TotalAlloc/1024, mem.Alloc/1024, mem.Mallocs, mem.NumGC)
}