# # # patch "network/connection_info.cc" # from [3920971cd1aa21d5b491dfba0e33531242e08bdf] # to [076b4c91cca8c4bb2a3aff04050fa19e936d9a86] # ============================================================ --- network/connection_info.cc 3920971cd1aa21d5b491dfba0e33531242e08bdf +++ network/connection_info.cc 076b4c91cca8c4bb2a3aff04050fa19e936d9a86 @@ -478,6 +478,10 @@ netsync_connection_info::setup_for_serve F("need permission to store persistent passphrase " "(see hook persist_phrase_ok())")); + // the uri as well as the include / exclude pattern are + // not used directly for serve, but need to be configured + // in order to let keys::cache_netsync_key() call the + // get_netsync_key() hook properly if (!opts.bind_uris.empty()) info->client.set_raw_uri((*opts.bind_uris.begin())()); @@ -487,9 +491,6 @@ netsync_connection_info::setup_for_serve else if (!opts.bind_stdio) W(F("The --no-transport-auth option is usually only used " "in combination with --stdio")); - - info->client.ensure_completeness(); - info->client.maybe_set_argv(lua); } // Local Variables: