don't generate certs if --trustProxy is passed
This commit is contained in:
1
Makefile
1
Makefile
@@ -3,6 +3,7 @@ VERSION=0.2.5
|
||||
APP=reseed-tools
|
||||
USER_GH=eyedeekay
|
||||
CGO_ENABLED=0
|
||||
export CGO_ENABLED=0
|
||||
|
||||
GOOS?=$(shell uname -s | tr A-Z a-z)
|
||||
GOARCH?="amd64"
|
||||
|
@@ -257,7 +257,7 @@ func reseedAction(c *cli.Context) {
|
||||
// prompt to create tls keys if they don't exist?
|
||||
auto := c.Bool("yes")
|
||||
ignore := c.Bool("ignore")
|
||||
if !ignore {
|
||||
if ignore {
|
||||
// use ACME?
|
||||
acme := c.Bool("acme")
|
||||
if acme {
|
||||
@@ -299,7 +299,7 @@ func reseedAction(c *cli.Context) {
|
||||
// prompt to create tls keys if they don't exist?
|
||||
auto := c.Bool("yes")
|
||||
ignore := c.Bool("trustProxy")
|
||||
if !ignore {
|
||||
if ignore {
|
||||
err := checkOrNewTLSCert(i2pTlsHost, &i2pTlsCert, &i2pTlsKey, auto)
|
||||
if nil != err {
|
||||
log.Fatalln(err)
|
||||
@@ -344,7 +344,7 @@ func reseedAction(c *cli.Context) {
|
||||
// prompt to create tls keys if they don't exist?
|
||||
auto := c.Bool("yes")
|
||||
ignore := c.Bool("trustProxy")
|
||||
if !ignore {
|
||||
if ignore {
|
||||
err := checkOrNewTLSCert(onionTlsHost, &onionTlsCert, &onionTlsKey, auto)
|
||||
if nil != err {
|
||||
log.Fatalln(err)
|
||||
|
Reference in New Issue
Block a user