Skip to content
Snippets Groups Projects
Commit f304ea76 authored by vito.he's avatar vito.he
Browse files

Fix:load protocol

parent 21ddcac6
No related branches found
No related tags found
No related merge requests found
...@@ -37,8 +37,8 @@ func (c *ProtocolConfig) Prefix() string { ...@@ -37,8 +37,8 @@ func (c *ProtocolConfig) Prefix() string {
func loadProtocol(protocolsIds string, protocols map[string]*ProtocolConfig) []*ProtocolConfig { func loadProtocol(protocolsIds string, protocols map[string]*ProtocolConfig) []*ProtocolConfig {
returnProtocols := []*ProtocolConfig{} returnProtocols := []*ProtocolConfig{}
for _, v := range strings.Split(protocolsIds, ",") { for _, v := range strings.Split(protocolsIds, ",") {
for _, prot := range protocols { for k, prot := range protocols {
if v == prot.Name { if v == k {
returnProtocols = append(returnProtocols, prot) returnProtocols = append(returnProtocols, prot)
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment