cname chain bug fix
This commit is contained in:
@@ -229,7 +229,7 @@ func query_handler(w dns.ResponseWriter, r *dns.Msg) {
|
|||||||
iter_cnt, err := strconv.Atoi(labels[0])
|
iter_cnt, err := strconv.Atoi(labels[0])
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if iter_cnt > fp.MaxNsDepth {
|
if iter_cnt > fp.MaxNsDepth {
|
||||||
fp.MaxNsDepth = iter_cnt
|
fp.MaxCnameDepth = iter_cnt
|
||||||
fmt.Printf("CnameChainTest (token = %v) status_update: %v\n", token, fp.MaxCnameDepth)
|
fmt.Printf("CnameChainTest (token = %v) status_update: %v\n", token, fp.MaxCnameDepth)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user