We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a397ee4 commit 4dc2150Copy full SHA for 4dc2150
internal/manifest.go
@@ -366,7 +366,7 @@ func (s *service) WithTag(tag string) *service {
366
367
func (s *service) WithPort(name string, portNumber int, protocolVar ...string) *service {
368
protocol := ProtocolTCP
369
- if len(protocol) > 0 {
+ if len(protocolVar) > 0 {
370
if protocolVar[0] != ProtocolTCP && protocolVar[0] != ProtocolUDP {
371
panic(fmt.Sprintf("protocol %s not supported", protocolVar[0]))
372
}
0 commit comments