File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2566,7 +2566,7 @@ set_transfer_proxy() {
25662566 proxy_port=" ${1##*: } "
25672567 proxy_addr=" ${1%%:* } "
25682568 # # Used for transfers that only curl can do.
2569- curl_transfer_proxy=" --proxy socks5h://${1} "
2569+ curl_transfer_proxy=( ' --proxy' " socks5h://${1} " )
25702570 # # Set transfer proxy per utility.
25712571 case " ${transfer_utility} " in
25722572 curl)
@@ -2656,7 +2656,7 @@ get_version() {
26562656 log info " Version Detection: Acquiring guest version using API..."
26572657 log info " Version Detection: API host: ${1} "
26582658 cmd_raw_version=(
2659- ' curl' " ${curl_transfer_proxy:- } "
2659+ ' curl' " ${curl_transfer_proxy[@] } "
26602660 " $( get_proxy_cred version) " " ${curl_opt_ssl[@]} "
26612661 ' --max-time' " ${transfer_max_time_small_file} "
26622662 ' --max-filesize' " ${transfer_size_small_file} "
Original file line number Diff line number Diff line change @@ -3244,7 +3244,7 @@ set_transfer_proxy() {
32443244 proxy_port=" ${1##*: } "
32453245 proxy_addr=" ${1%%:* } "
32463246 # # Used for transfers that only curl can do.
3247- curl_transfer_proxy=" --proxy socks5h://${1} "
3247+ curl_transfer_proxy=( ' --proxy' " socks5h://${1} " )
32483248 # # Set transfer proxy per utility.
32493249 case " ${transfer_utility} " in
32503250 curl)
@@ -3334,7 +3334,7 @@ get_version() {
33343334 log info " Version Detection: Acquiring guest version using API..."
33353335 log info " Version Detection: API host: ${1} "
33363336 cmd_raw_version=(
3337- ' curl' " ${curl_transfer_proxy:- } "
3337+ ' curl' " ${curl_transfer_proxy[@] } "
33383338 " $( get_proxy_cred version) " " ${curl_opt_ssl[@]} "
33393339 ' --max-time' " ${transfer_max_time_small_file} "
33403340 ' --max-filesize' " ${transfer_size_small_file} "
You can’t perform that action at this time.
0 commit comments