Skip to content

Commit

Permalink
cmd/serf/command/agent: fix dropped error
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Aug 4, 2023
1 parent 6067222 commit 4bba7a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/serf/command/agent/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ func (c *Command) startAgent(config *Config, agent *Agent,

// Parse the bind address information
bindIP, bindPort, err := config.AddrParts(config.BindAddr)
if err != nil {
c.Ui.Error(fmt.Sprintf("Failed to parse bind address information: %v", err))
return nil
}
bindAddr := &net.TCPAddr{IP: net.ParseIP(bindIP), Port: bindPort}

// Start the discovery layer
Expand Down

0 comments on commit 4bba7a1

Please sign in to comment.