15 lines
284 B
C++
15 lines
284 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
enum class ProxyType {
|
|
HTTP,
|
|
SOCKS5,
|
|
SOCKS5_HOSTNAME // Use this to let the proxy resolve the DNS
|
|
};
|
|
struct ProxyConfig {
|
|
std::string url;
|
|
ProxyType type = ProxyType::SOCKS5_HOSTNAME;
|
|
std::string username = "";
|
|
std::string password = "";
|
|
};
|