mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-25 03:26:34 +08:00
优化代码
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user