don't generate certs if --trustProxy is passed

This commit is contained in:
idk
2021-12-09 17:19:15 -05:00
parent e07fffd966
commit 1bddf97144
2 changed files with 4 additions and 3 deletions

View File

@@ -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"

View File

@@ -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)