|
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 |
|
@@ -82,6 +82,12 @@ public Tunnel() throws TunnelException { |
82 | 82 | parameters.put("basicAuth", "--basic-auth"); |
83 | 83 | parameters.put("mitm", "--mitm"); |
84 | 84 | parameters.put("skip-upgrade", "--skip-upgrade"); |
| 85 | + parameters.put("pacfile","--pacfile"); |
| 86 | + parameters.put("mTLSHosts","--mTLSHosts"); |
| 87 | + parameters.put("clientKey","--clientKey"); |
| 88 | + parameters.put("clientCert","--clientCert"); |
| 89 | + parameters.put("allowHosts","--allowHosts"); |
| 90 | + parameters.put("verbose","--verbose"); |
85 | 91 | } |
86 | 92 |
|
87 | 93 | /** |
@@ -237,6 +243,35 @@ public String passParametersToTunnel(Map<String, String> options) { |
237 | 243 | command += " --mitm "; |
238 | 244 | } |
239 | 245 |
|
| 246 | + if(options.get("pacfile") != "" && options.get("pacfile") !=null ) { |
| 247 | + command += " --pacfile "; |
| 248 | + command += options.get("pacfile"); |
| 249 | + } |
| 250 | + |
| 251 | + if(options.get("mTLSHosts") != "" && options.get("mTLSHosts") !=null ) { |
| 252 | + command += " --mTLSHosts "; |
| 253 | + command += options.get("mTLSHosts"); |
| 254 | + } |
| 255 | + |
| 256 | + if(options.get("clientKey") != "" && options.get("clientKey") !=null ) { |
| 257 | + command += " --clientKey "; |
| 258 | + command += options.get("clientKey"); |
| 259 | + } |
| 260 | + |
| 261 | + if(options.get("clientCert") != "" && options.get("clientCert") !=null ) { |
| 262 | + command += " --clientCert "; |
| 263 | + command += options.get("clientCert"); |
| 264 | + } |
| 265 | + |
| 266 | + if(options.get("allowHosts") != "" && options.get("allowHosts") !=null ) { |
| 267 | + command += " --allowHosts "; |
| 268 | + command += options.get("allowHosts"); |
| 269 | + } |
| 270 | + |
| 271 | + if(options.get("verbose") != "" && options.get("verbose") !=null ) { |
| 272 | + command += " --verbose "; |
| 273 | + } |
| 274 | + |
240 | 275 | if(t1.port!=null) { |
241 | 276 | command += " --callbackURL http://127.0.0.1:" + String.valueOf(t1.port); |
242 | 277 | } |
|
0 commit comments