Skip to content

Commit

Permalink
fix: invalid rules
Browse files Browse the repository at this point in the history
  • Loading branch information
igoogolx committed Oct 18, 2023
1 parent ed6a908 commit 4c61554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cfg/distribution/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func GetCachedDnsItem(ip string) (string, constants.DnsType, bool) {
if !ok {
return "", constants.DistributionLocalDns, false
}
return rawCachedDomain.(string), constants.DnsType(rawCachedRule.(string)), true
return rawCachedDomain.(string), rawCachedRule.(constants.DnsType), true
}

func AddCachedDnsItem(ip, domain string, rule constants.DnsType) {
Expand Down

0 comments on commit 4c61554

Please sign in to comment.