Minor Wget improvement.

GitOrigin-RevId: eaf7fb05624fbf01012a83e18e733c77d2b9216c
This commit is contained in:
levlam 2020-05-16 15:57:37 +03:00
parent ea9caab8bc
commit fee023c29f
2 changed files with 3 additions and 5 deletions

View File

@ -14,16 +14,14 @@
#include "td/utils/logging.h"
#include "td/utils/Status.h"
#include <string>
int main(int argc, char *argv[]) {
SET_VERBOSITY_LEVEL(VERBOSITY_NAME(DEBUG));
td::VERBOSITY_NAME(fd) = VERBOSITY_NAME(INFO);
std::string url = (argc > 1 ? argv[1] : "https://telegram.org");
td::string url = (argc > 1 ? argv[1] : "https://telegram.org");
auto timeout = 10;
auto ttl = 3;
auto prefer_ipv6 = (argc > 2 && std::string(argv[2]) == "-6");
auto prefer_ipv6 = (argc > 2 && td::string(argv[2]) == "-6");
auto scheduler = td::make_unique<td::ConcurrentScheduler>();
scheduler->init(0);
scheduler