Add support for the internal corpnet
This commit is contained in:
parent
1cc48ae9d8
commit
f5f4795cd9
@ -283,7 +283,8 @@ function parseFetchUpdate($updateInfo, $out, $arch, $ring, $flight, $build, $sku
|
||||
return array('error' => 'BROKEN_UPDATE');
|
||||
}
|
||||
|
||||
if(preg_match('/Corpnet Required/i', $updateTitle)) {
|
||||
$isCorpnet = preg_match('/Corpnet Required/i', $updateTitle);
|
||||
if($isCorpnet && !uupApiConfigIsTrue('allow_corpnet')) {
|
||||
consoleLogger('Skipping corpnet only update...');
|
||||
return array('error' => 'CORPNET_ONLY_UPDATE');
|
||||
}
|
||||
|
@ -184,6 +184,10 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type) {
|
||||
'WuClientVer='.$build,
|
||||
);
|
||||
|
||||
if($ring == 'MSIT' && uupApiConfigIsTrue('allow_corpnet')) {
|
||||
$attrib[] = 'DUInternal=1';
|
||||
}
|
||||
|
||||
return htmlentities('E:'.implode('&', $attrib));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user