添加和修改API节点时,检查HTTP API端口是否和GRPC端口冲突

This commit is contained in:
GoEdgeLab
2022-11-04 12:04:07 +08:00
parent 4904cd1825
commit 15e89a7717
5 changed files with 79 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ Tea.context(function () {
this.hasHTTPS = this.grpcAddrs.$any(function (k, v) {
return v.protocol == "https"
}) || (this.node.restIsOn && this.restAddrs.$any(function (k, v) {
}) || (this.restIsOn && this.restAddrs.$any(function (k, v) {
return v.protocol == "https"
}))
}