[优化] 添加基本鉴权支持,更新相关逻辑以生成 htpasswd 文件

This commit is contained in:
ryan
2026-05-26 10:41:41 +08:00
parent be68b581e9
commit c9a532db65
7 changed files with 112 additions and 29 deletions
+2
View File
@@ -240,6 +240,8 @@ func filterAgentSupportFiles(files []SupportFile) []SupportFile {
switch {
case strings.HasSuffix(path, ".crt"), strings.HasSuffix(path, ".key"), strings.HasSuffix(path, ".pem"):
filtered = append(filtered, file)
case strings.HasSuffix(path, ".htpasswd"):
filtered = append(filtered, file)
case path == "pow_config.json":
filtered = append(filtered, file)
}