1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-07 13:09:13 -04:00

add comments to exported func

This commit is contained in:
vcptr
2019-11-26 13:24:46 +08:00
parent ceb77ac8f5
commit 59e3a2a67c
3 changed files with 8 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ import (
dns_feature "v2ray.com/core/features/dns"
)
// Fqdn normalize domain make sure it ends with '.'
func Fqdn(domain string) string {
if len(domain) > 0 && domain[len(domain)-1] == '.' {
return domain
@@ -25,6 +26,7 @@ type record struct {
AAAA *IPRecord
}
// IPRecord is a cacheable item for a resolved domain
type IPRecord struct {
ReqID uint16
IP []net.Address