1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-29 05:25:21 -05:00

fix domain length issue for all proxies

This commit is contained in:
Darien Raymond
2017-10-22 20:17:06 +02:00
parent 9f392eb506
commit 26818a2602
7 changed files with 36 additions and 19 deletions

View File

@@ -97,3 +97,7 @@ func (sc *SecurityConfig) AsSecurity() Security {
}
return NormSecurity(Security(sc.Type))
}
func IsDomainTooLong(domain string) bool {
return len(domain) > 256
}