monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Code question...


From: William Uther
Subject: [Monotone-devel] Code question...
Date: Sat, 14 Jul 2007 21:20:38 -0700

Hi all,

A quick question on the code. In cmd_netsync.cc, about line 60 there is the following code:

static void
find_key(utf8 const & addr,
         globish const & include,
         globish const & exclude,
         app_state & app,
         bool needed = true)
{
  if (app.opts.signing_key() != "")
    return;

  rsa_keypair_id key;
  if (!app.lua.hook_get_netsync_key(app.opts.bind_address,
                                    include, exclude,
                                    key)
      || key() == "")
    {
      if (needed)
        {
          get_user_key(key, app);
        }
    }
  app.opts.signing_key = key;
}

Any idea why app.opts.bind_address is being used rather than the addr parameter?

Will        :-}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]