File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
src/interceptors/terminal-wrappers Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ PHP_ARGS=(
10
10
-d " openssl.cafile=$SSL_CERT_FILE " \
11
11
# Make cURL trust us
12
12
-d " curl.cainfo=$SSL_CERT_FILE " \
13
+ # Prepend a script that enables the proxy
14
+ -d " auto_prepend_file=` dirname $0 ` /prepend.php" \
13
15
# Pass through all other provided arguments
14
16
" $@ "
15
17
)
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ REM Remove that folder from PATH
11
11
call set PATH = %% PATH:%WRAPPER_FOLDER% ;=%%
12
12
13
13
REM Start PHP for real, with extra args to override certain configs
14
- php -d " openssl.cafile=%SSL_CERT_FILE% " -d " curl.cainfo=%SSL_CERT_FILE% " %*
14
+ php -d " openssl.cafile=%SSL_CERT_FILE% " -d " curl.cainfo=%SSL_CERT_FILE% " -d " auto_prepend_file= %WRAPPER_FOLDER% \prepend.php " %*
Original file line number Diff line number Diff line change
1
+ <?php
2
+ stream_context_set_default (
3
+ array (
4
+ 'http ' => array ('proxy ' => 'localhost:8000 ' )
5
+ )
6
+ );
7
+ ?>
You can’t perform that action at this time.
0 commit comments