Support IPv4 HTTP public gateway entries
This commit is contained in:
1 parent
6f01d31f97
commit
6d5973bea3
11 files changed
+146
-32
No files matched your search
@@ -68,8 +68,8 @@ func RenderWithOptions(opts RenderOptions, routes gin.RoutesInfo, authPort int)
|
||||
if scheme == "" {
|
||||
scheme = "https"
|
||||
}
|
||||
if !tlsservice.ValidDomain(domain) {
|
||||
return "", "", fmt.Errorf("请输入有效的单个完整域名")
|
||||
if !tlsservice.ValidPublicHost(scheme, domain) {
|
||||
return "", "", fmt.Errorf("请输入有效域名;HTTP 也支持 IPv4 地址")
|
||||
}
|
||||
if !tlsservice.ValidScheme(scheme) {
|
||||
return "", "", fmt.Errorf("协议仅支持 http 或 https")
|
||||
|
||||
Reference in new issue
Block a user