article feature

This commit is contained in:
2025-09-10 16:34:23 +06:00
parent 539d9c492d
commit 7493ec95aa
11 changed files with 34 additions and 2036 deletions

View File

@@ -71,7 +71,7 @@ func setupKnockRoutes(api *gin.RouterGroup) {
}
}
if err := knocker.ExecuteWithConfig(&config, req.Verbose, req.WaitConnection); err != nil {
if err := knocker.ExecuteWithConfig(&config, true || req.Verbose, req.WaitConnection); err != nil {
c.JSON(400, gin.H{"error": err.Error()})
return
}

View File

@@ -7,7 +7,7 @@ import (
"port-knocker/cmd"
)
// Version и BuildTime устанавливаются при сборке через ldflags
var (
Version = "v1.0.10"
BuildTime = "unknown"

View File

@@ -112,6 +112,7 @@ git push origin main
# Сборка бинарников
log_info "Собираем бинарники для всех платформ..."
export VERSION_NUM="${VERSION#v}"
# shellcheck disable=SC2155
export BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
# Функция сборки для платформы
@@ -155,6 +156,7 @@ log_info "Создаем Git тег..."
# Читаем release-notes.md и сохраняем содержимое в переменную NOTES
NOTES=$(cat docs/scripts/release-notes.md)
# Заменяем все переменные вида $VERSION в NOTES на их значения
# shellcheck disable=SC2001
NOTES=$(echo "$NOTES" | sed "s/\\\$VERSION/$VERSION/g")
git tag -a "$VERSION" -m "$NOTES"