We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebfc2e7 commit be5124aCopy full SHA for be5124a
modules/nginx.go
@@ -1087,7 +1087,7 @@ func (n *Nginx) AddTcpLoadBalance(request *http.Request) core.Response {
1087
if !validate.IsPort(m["node_port"].(string)) {
1088
return core.Fail("目标端口不正确")
1089
}
1090
- if !public.IsIpAddr(m["node_address"].(string)) {
+ if !validate.IsHost(m["node_address"].(string)) {
1091
return core.Fail("目标主机地址不正确")
1092
1093
if _, err := strconv.Atoi(m["node_weight"].(string)); err != nil {
0 commit comments