mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 15:17:23 +08:00
25 lines
553 B
C++
25 lines
553 B
C++
#pragma once
|
|
#include "proxy_protocols.hpp"
|
|
|
|
namespace big
|
|
{
|
|
struct proxy_settings
|
|
{
|
|
std::string proxy_host;
|
|
int proxy_port;
|
|
ProxyProtocol protocol = ProxyProtocol::NONE;
|
|
|
|
struct credentials
|
|
{
|
|
bool uses_creds;
|
|
|
|
std::string user;
|
|
std::string password;
|
|
|
|
NLOHMANN_DEFINE_TYPE_INTRUSIVE(credentials, uses_creds, user, password)
|
|
} creds{};
|
|
|
|
NLOHMANN_DEFINE_TYPE_INTRUSIVE(proxy_settings, proxy_host, proxy_port, protocol, creds)
|
|
|
|
};
|
|
} |