diff --git a/main.go b/main.go index 8606715..d82691a 100644 --- a/main.go +++ b/main.go @@ -147,7 +147,8 @@ func cliJoin(ctx context.Context, cmd *cli.Command) error { cl := &httpnode.Client{HTTP: http.Client{Timeout: 5 * time.Second}} var node *chord.Node if peer := cmd.String("c"); peer != "" { - p, err := netip.ParseAddrPort(peer) + var p netip.AddrPort + p, err = netip.ParseAddrPort(peer) if err != nil { return err }