14 lines
300 B
C++
14 lines
300 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 = "";
|
|
}; |