修复ACME错误

This commit is contained in:
CN-JS-HuiBai
2026-04-15 19:14:47 +08:00
parent 1fb5f5fb12
commit 7a3126fc85
2 changed files with 12 additions and 1 deletions

5
.gitignore vendored
View File

@@ -5,7 +5,10 @@ sing-box.exe
*.dll *.dll
*.so *.so
*.dylib *.dylib
.codex-go-Cache
.codex-gopath
.codex-go-Build
.codex-go-modcache
# Environment # Environment
.env .env
.env.local .env.local

View File

@@ -96,6 +96,14 @@ build_sing_box() {
echo -e "${RED}Failed to download Go modules.${NC}" echo -e "${RED}Failed to download Go modules.${NC}"
exit 1 exit 1
fi fi
if ! go get github.com/libdns/dnspod@v0.0.3 github.com/libdns/tencentcloud@v1.4.3; then
echo -e "${RED}Failed to download ACME DNS provider modules.${NC}"
exit 1
fi
if ! go mod tidy; then
echo -e "${RED}Failed to refresh Go module metadata.${NC}"
exit 1
fi
echo -e "${YELLOW}Starting compilation (this may take a few minutes)...${NC}" echo -e "${YELLOW}Starting compilation (this may take a few minutes)...${NC}"
echo -e "${YELLOW}Note: Using -p 1 to save memory and avoid silent crashes.${NC}" echo -e "${YELLOW}Note: Using -p 1 to save memory and avoid silent crashes.${NC}"