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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user