mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-29 07:26:22 +08:00
CLOUDFLARE: CF_REDIRECT "name" should be 3-digits so it sorts better (#3495)
This commit is contained in:
parent
eec0f4952f
commit
0097b63a20
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ func MakePageRule(rc *models.RecordConfig, priority int, code uint16, when, then
|
|||
|
||||
// mkPageRuleBlob creates the 1,301,when,then string used in displays.
|
||||
func mkPageRuleBlob(priority int, code uint16, when, then string) string {
|
||||
return fmt.Sprintf("%d,%03d,%s,%s", priority, code, when, then)
|
||||
return fmt.Sprintf("%03d,%03d,%s,%s", priority, code, when, then)
|
||||
}
|
||||
|
||||
// makeSingleRedirectFromRawRec updates a RecordConfig to be a
|
||||
|
|
@ -126,5 +126,5 @@ func makeSingleRedirectFromConvert(rc *models.RecordConfig,
|
|||
|
||||
// targetFromConverted makes the display text used when a redirect was the result of converting a PAGE_RULE.
|
||||
func targetFromConverted(prPriority int, code uint16, prWhen, prThen, srWhen, srThen string) string {
|
||||
return fmt.Sprintf("%d,%03d,%s,%s code=(%03d) when=(%s) then=(%s)", prPriority, code, prWhen, prThen, code, srWhen, srThen)
|
||||
return fmt.Sprintf("%03d,%03d,%s,%s code=(%03d) when=(%s) then=(%s)", prPriority, code, prWhen, prThen, code, srWhen, srThen)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue