File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -198,16 +198,16 @@ end
198198-- Get version data from remote server
199199---- -----------------------------------------------------
200200function GetVersInfoFromRemoteServer ()
201- fetchRemote ( " http ://nightly.mtasa .com/ver/" , onGotVersInfo )
201+ fetchRemote ( " https ://nightly.multitheftauto .com/ver/" , onGotVersInfo )
202202end
203203
204204function onGotVersInfo ( responseData , errno )
205205 if errno == 0 then
206206
207- local ver = string.sub ( getVersion ().sortable , 0 , 3 )
207+ local ver = string.sub ( getVersion ().sortable , 1 , 3 )
208208
209- releaseMinVersion = string.match ( responseData , " default: " .. ver .. " .(.-)[^0-9.-] " )
210- latestMinVersion = string.match ( responseData , " minclientversion: " .. ver .. " .(.-)[^0-9.-] " )
209+ releaseMinVersion = string.match ( responseData , " Auto-update default:%s* " .. ver .. " %.([%d%-%.]+) " )
210+ latestMinVersion = string.match ( responseData , " Max recommended/ minclientversion:%s* " .. ver .. " %.([%d%-%.]+) " )
211211
212212 if releaseMinVersion and latestMinVersion then
213213 releaseMinVersion = ver .. " ." .. releaseMinVersion
You can’t perform that action at this time.
0 commit comments