chore fixed (#895)

* chore fixed
This commit is contained in:
Machtergreifung
2022-01-11 12:39:58 +08:00
committed by GitHub
parent 1447615f3a
commit 800b3bd3fe
5 changed files with 7 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ import (
dns_feature "github.com/xtls/xray-core/features/dns"
)
// Fqdn normalize domain make sure it ends with '.'
// Fqdn normalizes domain make sure it ends with '.'
func Fqdn(domain string) string {
if len(domain) > 0 && strings.HasSuffix(domain, ".") {
return domain
@@ -163,7 +163,7 @@ func buildReqMsgs(domain string, option dns_feature.IPOption, reqIDGen func() ui
return reqs
}
// parseResponse parse DNS answers from the returned payload
// parseResponse parses DNS answers from the returned payload
func parseResponse(payload []byte) (*IPRecord, error) {
var parser dnsmessage.Parser
h, err := parser.Start(payload)