Skip to content

Commit

Permalink
home: upgrade yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Aug 30, 2023
1 parent 0593e4d commit a5607f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/home/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ func upgradeSchema25to26(diskConf yobj) (err error) {
moveFieldValue[string](dnsObj, filteringObj, "blocking_ipv4"),
moveFieldValue[string](dnsObj, filteringObj, "blocking_ipv6"),
moveFieldValue[int](dnsObj, filteringObj, "blocked_response_ttl"),
moveFieldValue[*string](dnsObj, filteringObj, "protection_disabled_until"),
moveFieldValue[any](dnsObj, filteringObj, "protection_disabled_until"),
moveFieldValue[string](dnsObj, filteringObj, "parental_block_host"),
moveFieldValue[string](dnsObj, filteringObj, "safebrowsing_block_host"),
)
Expand Down
2 changes: 1 addition & 1 deletion internal/home/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ func TestUpgradeSchema25to26(t *testing.T) {
"blocking_ipv4": "1.2.3.4",
"blocking_ipv6": "1:2:3::4",
"blocked_response_ttl": 10,
"protection_disabled_until": (*string)(nil),
"protection_disabled_until": nil,
"parental_block_host": "p.dns.adguard.com",
"safebrowsing_block_host": "s.dns.adguard.com",
},
Expand Down

0 comments on commit a5607f8

Please sign in to comment.