diff --git a/tools/nextwks-tool/main.go b/tools/nextwks-tool/main.go index 1886bca..f90c165 100644 --- a/tools/nextwks-tool/main.go +++ b/tools/nextwks-tool/main.go @@ -166,14 +166,14 @@ func obtainCertsLego(domains []string, email, backupDir, legoDir, legoPath strin // Build lego args (v5+: flags go after the command, use = syntax) args := []string{"run", - "--email=" + email, "--http", - "--http.port=:80", - "--path=" + legoDir, + "--http.address=:80", + "--path", legoDir, "--accept-tos", + "-m", email, } for _, d := range domains { - args = append(args, "--domains="+d) + args = append(args, "-d", d) } cmd := exec.Command(legoPath, args...)