All DNS options set with the –dns or –dhcp-option directive.
More...
#include <dns_options.hpp>
All DNS options set with the –dns or –dhcp-option directive.
Definition at line 530 of file dns_options.hpp.
◆ DnsOptions() [1/2]
| openvpn::DnsOptions::DnsOptions |
( |
| ) |
|
|
default |
◆ ~DnsOptions()
| openvpn::DnsOptions::~DnsOptions |
( |
| ) |
|
|
defaultnoexcept |
◆ DnsOptions() [2/2]
| openvpn::DnsOptions::DnsOptions |
( |
const Json::Value & |
root, |
|
|
const std::string & |
title = "" |
|
) |
| |
|
inlineexplicit |
Instantiate a new DnsOptions object with information from a JSON blob, typically exported using the DnsOptions::to_json() method
- Parameters
-
| root | The root Json::Value object to import |
| title | std::string with details used for error logging |
Definition at line 543 of file dns_options.hpp.
◆ from_json()
| void openvpn::DnsOptions::from_json |
( |
const Json::Value & |
root, |
|
|
const std::string & |
title |
|
) |
| |
|
inline |
Import a Json::Value, typically generated by DnsOptions::to_json() which will reconfigure this object to carry the information from the JSON data.
- Parameters
-
| root | The root Json::Value object to import |
| title | std::string with details used for error logging |
Definition at line 613 of file dns_options.hpp.
◆ get_server()
| DnsServer & openvpn::DnsOptions::get_server |
( |
const int |
priority | ) |
|
|
inlineprotected |
◆ operator==()
| bool openvpn::DnsOptions::operator== |
( |
const DnsOptions & |
at | ) |
const |
|
default |
◆ to_json()
| Json::Value openvpn::DnsOptions::to_json |
( |
| ) |
const |
|
inline |
◆ to_string()
| std::string openvpn::DnsOptions::to_string |
( |
| ) |
const |
|
inline |
Generate a human readable representation of the configured DnsOptions variables
- Returns
- std::string the string representation generated
Definition at line 555 of file dns_options.hpp.
◆ from_dhcp_options
| bool openvpn::DnsOptions::from_dhcp_options = false |
Set to true if the DNS options comes from –dhcp-option options.
Definition at line 629 of file dns_options.hpp.
◆ search_domains
| std::vector<DnsDomain> openvpn::DnsOptions::search_domains |
◆ servers
| std::map<int, DnsServer> openvpn::DnsOptions::servers |
List of DNS servers to use, according to the list of priority.
Definition at line 631 of file dns_options.hpp.
The documentation for this class was generated from the following file: