|
26 | 26 | */ |
27 | 27 | public class Tunnel { |
28 | 28 |
|
29 | | - private static final List<String> IGNORE_KEYS = Arrays.asList("user", "key", "infoAPIPort", "binarypath", "load-balanced", "mitm"); |
| 29 | + private static final List<String> IGNORE_KEYS = Arrays.asList("user", "key", "infoAPIPort", "binarypath", "load-balanced", "mitm", "pacfile", "mTLSHosts", "clientKey", "clientCert", "allowHosts", "verbose"); |
30 | 30 |
|
31 | 31 | private boolean tunnelFlag = false; |
32 | 32 |
|
@@ -87,6 +87,7 @@ public Tunnel() throws TunnelException { |
87 | 87 | parameters.put("clientKey","--clientKey"); |
88 | 88 | parameters.put("clientCert","--clientCert"); |
89 | 89 | parameters.put("allowHosts","--allowHosts"); |
| 90 | + parameters.put("verbose","--verbose"); |
90 | 91 | } |
91 | 92 |
|
92 | 93 | /** |
@@ -244,22 +245,31 @@ public String passParametersToTunnel(Map<String, String> options) { |
244 | 245 |
|
245 | 246 | if(options.get("pacfile") != "" && options.get("pacfile") !=null ) { |
246 | 247 | command += " --pacfile "; |
| 248 | + command += options.get("pacfile"); |
247 | 249 | } |
248 | 250 |
|
249 | 251 | if(options.get("mTLSHosts") != "" && options.get("mTLSHosts") !=null ) { |
250 | 252 | command += " --mTLSHosts "; |
| 253 | + command += options.get("mTLSHosts"); |
251 | 254 | } |
252 | 255 |
|
253 | 256 | if(options.get("clientKey") != "" && options.get("clientKey") !=null ) { |
254 | 257 | command += " --clientKey "; |
| 258 | + command += options.get("clientKey"); |
255 | 259 | } |
256 | 260 |
|
257 | 261 | if(options.get("clientCert") != "" && options.get("clientCert") !=null ) { |
258 | 262 | command += " --clientCert "; |
| 263 | + command += options.get("clientCert"); |
259 | 264 | } |
260 | 265 |
|
261 | 266 | if(options.get("allowHosts") != "" && options.get("allowHosts") !=null ) { |
262 | 267 | command += " --allowHosts "; |
| 268 | + command += options.get("allowHosts"); |
| 269 | + } |
| 270 | + |
| 271 | + if(options.get("verbose") != "" && options.get("verbose") !=null ) { |
| 272 | + command += " --verbose "; |
263 | 273 | } |
264 | 274 |
|
265 | 275 | if(t1.port!=null) { |
|
0 commit comments