fix: #1391 Change http to https endpoints for macos download
This commit is contained in:
parent
c10ba9aac0
commit
9332ff25cd
4
quickget
4
quickget
|
@ -2021,14 +2021,14 @@ function get_macos() {
|
|||
|
||||
appleSession=$(curl -v -H "Host: osrecovery.apple.com" \
|
||||
-H "Connection: close" \
|
||||
-A "InternetRecovery/1.0" http://osrecovery.apple.com/ 2>&1 | tr ';' '\n' | awk -F'session=|;' '{print $2}' | grep 1)
|
||||
-A "InternetRecovery/1.0" https://osrecovery.apple.com/ 2>&1 | tr ';' '\n' | awk -F'session=|;' '{print $2}' | grep 1)
|
||||
info=$(curl -s -X POST -H "Host: osrecovery.apple.com" \
|
||||
-H "Connection: close" \
|
||||
-A "InternetRecovery/1.0" \
|
||||
-b "session=\"${appleSession}\"" \
|
||||
-H "Content-Type: text/plain" \
|
||||
-d $'cid='"$(generate_id 16)"$'\nsn='${MLB}$'\nbid='${BOARD_ID}$'\nk='"$(generate_id 64)"$'\nfg='"$(generate_id 64)"$'\nos='${OS_TYPE} \
|
||||
http://osrecovery.apple.com/InstallationPayload/RecoveryImage | tr ' ' '\n')
|
||||
https://osrecovery.apple.com/InstallationPayload/RecoveryImage | tr ' ' '\n')
|
||||
downloadLink=$(echo "$info" | grep 'oscdn' | grep 'dmg')
|
||||
downloadSession=$(echo "$info" | grep 'expires' | grep 'dmg')
|
||||
chunkListLink=$(echo "$info" | grep 'oscdn' | grep 'chunklist')
|
||||
|
|
Loading…
Reference in New Issue