mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-06 00:00:03 +08:00
Add support to option "dhcp-option" in ovpn file
This commit is contained in:
@@ -47,6 +47,15 @@ namespace openvpn {
|
||||
std::string friendlyName;
|
||||
};
|
||||
|
||||
// Added by Dener Araújo - 2020-09-06
|
||||
// Represents an "dhcp-option" with its type (DNS, WINS, etc) and its address
|
||||
// (client reads)
|
||||
struct DhcpOptionEntry
|
||||
{
|
||||
std::string type;
|
||||
std::string address;
|
||||
};
|
||||
|
||||
// return properties of config
|
||||
// (client reads)
|
||||
struct EvalConfig
|
||||
@@ -91,6 +100,10 @@ namespace openvpn {
|
||||
|
||||
// optional list of user-selectable VPN servers
|
||||
std::vector<ServerEntry> serverList;
|
||||
|
||||
// Added by Dener Araújo - 2020-09-06
|
||||
// optional list of "dhcp-option"
|
||||
std::vector<DhcpOptionEntry> dhcpOptionList;
|
||||
};
|
||||
|
||||
// used to pass credentials to VPN core
|
||||
|
||||
Reference in New Issue
Block a user