Skip to content

Commit

Permalink
agent: fix listener config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tschwery authored Aug 25, 2024
1 parent aa5a5ca commit b3d97f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (c *ListenerConfig) Validate() error {
if _, ok := c.URL(); !ok {
return fmt.Errorf("invalid addr")
}
} else if c.Protocol != ListenerProtocolTCP {
} else if c.Protocol == ListenerProtocolTCP {
if _, ok := c.Host(); !ok {
return fmt.Errorf("invalid addr")
}
Expand Down

0 comments on commit b3d97f5

Please sign in to comment.