优化代码

This commit is contained in:
GoEdgeLab
2022-07-27 16:55:19 +08:00
parent 45b465a9d9
commit 54a4b9058a
2 changed files with 16 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ func (this *AddPortPopupAction) RunGet(params struct {
}) {
this.Data["from"] = params.From
protocols := serverconfigs.AllServerProtocolsForType(params.ServerType)
protocols := serverconfigs.FindAllServerProtocolsForType(params.ServerType)
if len(params.Protocol) > 0 {
result := []maps.Map{}
for _, p := range protocols {