From 1eb470fa12bcd6f75aaa89bc020d4c7da6f8570a Mon Sep 17 00:00:00 2001 From: cclohmar Date: Tue, 7 Jul 2026 15:14:46 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20lego=20v5=20flags=20=E2=80=94=20use=20--?= =?UTF-8?q?http.address,=20-m=20for=20email,=20-d=20for=20domains?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/nextwks-tool/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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...)