|
@@ -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)
|