mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-21 10:40:13 +00:00
feat: server transfer rotation
This commit is contained in:
+6
-1
@@ -26,6 +26,10 @@ const (
|
||||
TaskTypeFM
|
||||
TaskTypeReportConfig
|
||||
TaskTypeApplyConfig
|
||||
// TaskTypeServerTransferApply: per-transfer credential rotation.
|
||||
// Pre-transfer agents do not recognise this type — dashboard MUST gate
|
||||
// transfers on agent capability before pushing.
|
||||
TaskTypeServerTransferApply
|
||||
)
|
||||
|
||||
type TerminalTask struct {
|
||||
@@ -133,7 +137,8 @@ func IsServiceSentinelNeeded(t uint64) bool {
|
||||
switch t {
|
||||
case TaskTypeCommand, TaskTypeTerminalGRPC, TaskTypeUpgrade,
|
||||
TaskTypeKeepalive, TaskTypeNAT, TaskTypeFM,
|
||||
TaskTypeReportConfig, TaskTypeApplyConfig:
|
||||
TaskTypeReportConfig, TaskTypeApplyConfig,
|
||||
TaskTypeServerTransferApply:
|
||||
return false
|
||||
default:
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user