mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-16 23:04:24 +08:00
feat(cloudflare): 支持分组级自动与手动 TTL 配置 (#62)
This commit is contained in:
@@ -76,9 +76,9 @@ func reconcileMember(ctx context.Context, memberID uint) error {
|
||||
}
|
||||
input.Name = state.Domain.Domain
|
||||
input.Proxied = state.Member.Proxied
|
||||
input.TTL = 300
|
||||
input.TTL = groupTTL(&state.Group)
|
||||
if input.Proxied {
|
||||
input.TTL = 1
|
||||
input.TTL = automaticTTL
|
||||
}
|
||||
recordID := state.Member.CFRecordID
|
||||
if recordID != "" {
|
||||
|
||||
Reference in New Issue
Block a user