25 class Info :
public RC<thread_unsafe_refcount>
30 Info(CF::DynamicStore &sc,
const std::string &
sname)
31 :
ipv4(sc,
sname,
"State:/Network/Global/IPv4"),
39 std::ostringstream
os;
57 throw macproxy_error(
"no primary service");
58 return "Setup:/Network/Service/" + serv +
"/Proxies";
static CF::DynamicStore ds_create(const std::string &sname)
std::string to_string() const
void backup_orig(const std::string &key, const bool wipe_orig=true)
static std::string proxies(const CF::Dict &ipv4, const CF::Dict &info)
Info(CF::DynamicStore &sc, const std::string &sname)
std::string to_string() const
RCPtr< MacProxySettings > Ptr
MacProxySettings(const TunBuilderCapture::ProxyAutoConfigURL &config_arg)
OPENVPN_EXCEPTION(macproxy_error)
void set_proxy(bool del) override
TunBuilderCapture::ProxyAutoConfigURL config
Reference count base class for objects tracked by RCPtr. Disallows copying and assignment.
Class for handling Proxy Auto-Configuration (PAC) URLs.
bool defined() const
Checks if the URL is defined.
std::string to_string() const
Returns the URL as a string.
#define OPENVPN_LOG(args)
void dict_set_int(MutableDict &dict, const KEY &key, int value)
void dict_set_str(MutableDict &dict, const KEY &key, const VALUE &value)
std::string dict_get_str(const DICT &dict, const KEY &key)