@@ -127,10 +127,11 @@ struct dht_params {
127
127
std::string devicekey {};
128
128
std::string persist_path {};
129
129
dht::crypto::Identity id {};
130
- dht::crypto::Identity proxy_id {};
131
130
std::string privkey_pwd {};
132
- std::string proxy_privkey_pwd {};
133
131
std::string save_identity {};
132
+ dht::crypto::Identity proxy_id {};
133
+ std::string proxy_privkey_pwd {};
134
+ std::string proxy_client_certificate {};
134
135
};
135
136
136
137
static const constexpr struct option long_options[] = {
@@ -155,6 +156,7 @@ static const constexpr struct option long_options[] = {
155
156
{" proxy-certificate" , required_argument, nullptr , ' w' },
156
157
{" proxy-privkey" , required_argument, nullptr , ' K' },
157
158
{" proxy-privkey-password" , required_argument, nullptr , ' M' },
159
+ {" proxy-client-certificate" ,required_argument, nullptr , ' P' },
158
160
{" proxyclient" , required_argument, nullptr , ' C' },
159
161
{" pushserver" , required_argument, nullptr , ' y' },
160
162
{" devicekey" , required_argument, nullptr , ' z' },
@@ -274,6 +276,9 @@ parseArgs(int argc, char **argv) {
274
276
case ' I' :
275
277
params.save_identity = optarg ;
276
278
break ;
279
+ case ' P' :
280
+ params.proxy_client_certificate = optarg ;
281
+ break ;
277
282
default :
278
283
break ;
279
284
}
0 commit comments