Bugfix, ECS, and makesure max query timeout is about 1000ms

This commit is contained in:
Nick Peng
2018-12-22 20:13:31 +08:00
parent 7aa32069ef
commit f1999ecfd8
5 changed files with 18 additions and 14 deletions

View File

@@ -1346,7 +1346,7 @@ int _dns_encode_opts(struct dns_packet *packet, struct dns_context *context, str
payloadsize = DNS_DEFAULT_PACKET_SIZE;
}
ret = _dns_encode_rr_head(context, "0", DNS_T_OPT, payloadsize, rcode, rr_len);
ret = _dns_encode_rr_head(context, "", DNS_T_OPT, payloadsize, rcode, rr_len);
if (ret < 0) {
return -1;
}