增加删除API节点功能

This commit is contained in:
GoEdgeLab
2020-10-10 20:41:33 +08:00
parent 444ca7535e
commit 32ac0d62d3
5 changed files with 39 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ func (this *CreateAddrPopupAction) RunPost(params struct {
params.Must.
Field("addr", params.Addr).
Require("请输入访问地址")
host, port, err := net.SplitHostPort(params.Addr)
if err != nil {
this.FailField("addr", "错误的访问地址")