Skip to content
Snippets Groups Projects
Commit 51269f45 authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #218 from hxmhlt/fix_load_protocol

Fix:load protocol
parents 21ddcac6 f304ea76
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,8 @@ func (c *ProtocolConfig) Prefix() string {
func loadProtocol(protocolsIds string, protocols map[string]*ProtocolConfig) []*ProtocolConfig {
returnProtocols := []*ProtocolConfig{}
for _, v := range strings.Split(protocolsIds, ",") {
for _, prot := range protocols {
if v == prot.Name {
for k, prot := range protocols {
if v == k {
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