message: Remove localhost restriction
diff: @@ -65,9 +65,6 @@ void wallet_api_plugin::plugin_startup() {
  // lifetime of plugin is lifetime of application
  auto& wallet_mgr = app().get_plugin<wallet_plugin>().get_wallet_manager();
  - // TODO: http_plugin needs to add ability to restrict to localhost, once added add call here.
  - // TODO: For now see TODO below.
  -
  app().get_plugin<http_plugin>().add_api({
  CALL(wallet, wallet_mgr, set_timeout,
  INVOKE_V_R(wallet_mgr, set_timeout, int64_t)),
  @@ -95,12 +92,18 @@ void wallet_api_plugin::plugin_startup() {
  }
  void wallet_api_plugin::plugin_initialize(const variables_map& options) {
  - // TODO: see TODO above, this is temporary until http_plugin has option to restrict to localhost
  if (options.count("http-server-endpoint")) {
  const auto& lipstr = options.at("http-server-endpoint").as<string>();
  const auto& host = lipstr.substr(0, lipstr.find(':'));
  if (host != "localhost" && host != "127.0.0.1") {
  - FC_THROW("wallet api restricted to localhost");
  + wlog("\n"
  + "*************************************\n"
  + "* *\n"
  + "* -- Wallet NOT on localhost -- *\n"
  + "* - Password and/or Private Keys - *\n"
  + "* - are transferred unencrypted. - *\n"
  + "* *\n"
  + "*************************************\n");
  }
  }
  }
  