diff --git a/openvpn/ws/httpcli.hpp b/openvpn/ws/httpcli.hpp index d8ecd748..1c03aa6d 100644 --- a/openvpn/ws/httpcli.hpp +++ b/openvpn/ws/httpcli.hpp @@ -170,7 +170,13 @@ namespace openvpn { } }; - struct Request { + struct Request + { + bool creds_defined() const + { + return !username.empty() || !password.empty(); + } + void set_creds(const Creds& creds) { username = creds.username;