优化代码

This commit is contained in:
刘祥超
2022-07-27 16:55:19 +08:00
parent 08ce2b7799
commit e6a30b99d3
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 {