Skip to content
Snippets Groups Projects
Commit 6a385b10 authored by 邹毅贤's avatar 邹毅贤
Browse files

travis trigger

parent d03c7365
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ func NewServiceConfig(id string, context context.Context) *ServiceConfig { ...@@ -111,7 +111,7 @@ func NewServiceConfig(id string, context context.Context) *ServiceConfig {
func getRandomPort(protocolConfigs []*ProtocolConfig) *list.List { func getRandomPort(protocolConfigs []*ProtocolConfig) *list.List {
l := list.New() l := list.New()
for _, proto := range protocolConfigs { for _, proto := range protocolConfigs {
if proto.Port != "" { if len(proto.Port) > 0 {
continue continue
} }
...@@ -162,7 +162,7 @@ func (c *ServiceConfig) Export() error { ...@@ -162,7 +162,7 @@ func (c *ServiceConfig) Export() error {
port := proto.Port port := proto.Port
if proto.Port == "" { if len(proto.Port) == 0 {
port = nextPort.Value.(string) port = nextPort.Value.(string)
nextPort = nextPort.Next() nextPort = nextPort.Next()
} }
......
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