If we haven't set a build number, make up a random one (helps with evading detection)

This commit is contained in:
Hazim Gazov
2010-07-28 23:34:41 +00:00
parent 37b612d515
commit c5118d48b8
2 changed files with 7 additions and 1 deletions

View File

@@ -8589,7 +8589,7 @@
<key>Type</key>
<string>U32</string>
<key>Value</key>
<integer>0</integer>
<integer>100000</integer>
</map>
<key>SpecifiedMAC</key>
<map>

View File

@@ -435,7 +435,13 @@ void LLPanelLogin::fillVer()
getChild<LLSpinCtrl>("vermaj_spin")->forceSetValue((S32)gSavedSettings.getU32("SpecifiedVersionMaj"));
getChild<LLSpinCtrl>("vermin_spin")->forceSetValue((S32)gSavedSettings.getU32("SpecifiedVersionMin"));
getChild<LLSpinCtrl>("verpatch_spin")->forceSetValue((S32)gSavedSettings.getU32("SpecifiedVersionPatch"));
//simple hack to stop bans based on specific versions, 257 is a reasonable upper limit for a build number.
if(gSavedSettings.getU32("SpecifiedVersionBuild") == 100000)
gSavedSettings.setU32("SpecifiedVersionBuild", ll_rand(257));
getChild<LLSpinCtrl>("verbuild_spin")->forceSetValue((S32)gSavedSettings.getU32("SpecifiedVersionBuild"));
}
// static