only allow TLS+onion
This commit is contained in:
@@ -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
|
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
|
### 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),
|
If this is your first time running a reseed server (ie. you don't have any existing keys),
|
||||||
|
|||||||
@@ -125,8 +125,10 @@ func reseedAction(c *cli.Context) {
|
|||||||
tlsHost := c.String("tlsHost")
|
tlsHost := c.String("tlsHost")
|
||||||
|
|
||||||
if c.Bool("onion") {
|
if c.Bool("onion") {
|
||||||
|
if tlsHost == "" {
|
||||||
tlsHost = "onion"
|
tlsHost = "onion"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if tlsHost != "" {
|
if tlsHost != "" {
|
||||||
tlsKey = c.String("tlsKey")
|
tlsKey = c.String("tlsKey")
|
||||||
@@ -195,7 +197,7 @@ func reseedAction(c *cli.Context) {
|
|||||||
if c.Duration("stats") != 0 {
|
if c.Duration("stats") != 0 {
|
||||||
go func() {
|
go func() {
|
||||||
var mem runtime.MemStats
|
var mem runtime.MemStats
|
||||||
for _ = range time.Tick(c.Duration("stats")) {
|
for range time.Tick(c.Duration("stats")) {
|
||||||
runtime.ReadMemStats(&mem)
|
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)
|
log.Printf("TotalAllocs: %d Kb, Allocs: %d Kb, Mallocs: %d, NumGC: %d", mem.TotalAlloc/1024, mem.Alloc/1024, mem.Mallocs, mem.NumGC)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user