Skip to content

Commit

Permalink
Continug ripping random code out of the dashboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurik committed Jul 21, 2024
1 parent e572a69 commit 7d88a53
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tst-network/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <system_wrappers/include/field_trial.h>

#include "baton.hpp"
#include "boring.hpp"
#include "client0.hpp"
#include "client1.hpp"
#include "crypto.hpp"
Expand All @@ -53,7 +52,6 @@
#include "sleep.hpp"
#include "store.hpp"
#include "time.hpp"
#include "transport.hpp"
#include "updater.hpp"
#include "version.hpp"

Expand Down Expand Up @@ -222,9 +220,6 @@ auto &At(Type_ &&type, const Value_ &value) {
int Main(int argc, const char *const argv[]) {
std::vector<std::string> chains;

std::vector<std::string> openvpns;
std::vector<std::string> wireguards;

po::variables_map args;

po::options_description group("general command line");
Expand All @@ -251,12 +246,6 @@ int Main(int argc, const char *const argv[]) {
("chain", po::value<std::vector<std::string>>(&chains), "like 1,ETH,https://cloudflare-eth.com/")
; options.add(group); }

{ po::options_description group("protocol testing");
group.add_options()
("openvpn", po::value(&openvpns))
("wireguard", po::value(&wireguards))
; options.add(group); }

po::store(po::parse_command_line(argc, argv, po::options_description()
.add(group)
.add(options)
Expand All @@ -272,8 +261,6 @@ int Main(int argc, const char *const argv[]) {
return 0;
}

Initialize();

const unsigned milliseconds(60*1000);
const S<Base> base(Break<Local>());

Expand Down Expand Up @@ -327,16 +314,6 @@ int Main(int argc, const char *const argv[]) {
std::vector<std::string> names;
std::vector<task<Report>> tests;

for (const auto &openvpn : openvpns) {
names.emplace_back("OpenVPN");
tests.emplace_back(TestOpenVPN(base, Load(openvpn)));
}

for (const auto &wireguard : wireguards) {
names.emplace_back("WireGuard");
tests.emplace_back(TestWireGuard(base, Load(wireguard)));
}

for (const auto &[provider, name] : (std::pair<const char *, const char *>[]) {
{"0x605c12040426ddCc46B4FEAD4b18a30bEd201bD0", "Bloq"},
{"0xe675657B3fBbe12748C7A130373B55c898E0Ea34", "BolehVPN"},
Expand Down

0 comments on commit 7d88a53

Please sign in to comment.