Switched the fetch request to state.json to use HTTPS to avoid uneeded redirects.
This commit is contained in:
parent
83c6c681ca
commit
f23ef8ad91
@ -2,7 +2,7 @@
|
||||
|
||||
'Seconds between updates
|
||||
Const updatedelay = 2
|
||||
Const version As String = "1.10"
|
||||
Const version As String = "1.11"
|
||||
Const downloadurl As String = "https://long-cat.net/projects/pepperbet/pepperbet.exe?v=" & version
|
||||
Const versionurl As String = "https://long-cat.net/projects/pepperbet/version.txt?v=" & version
|
||||
Const dbfilename As String = "pepperdata.xml"
|
||||
@ -116,7 +116,7 @@
|
||||
|
||||
While xdoc Is Nothing
|
||||
Try
|
||||
xdoc = Newtonsoft.Json.JsonConvert.DeserializeXmlNode(wc.DownloadString("http://www.saltybet.com/state.json"), "saltybet")
|
||||
xdoc = Newtonsoft.Json.JsonConvert.DeserializeXmlNode(wc.DownloadString("https://www.saltybet.com/state.json"), "saltybet")
|
||||
Catch ex As Exception
|
||||
xdoc = Nothing
|
||||
System.Threading.Thread.Sleep(1500)
|
||||
@ -130,7 +130,7 @@
|
||||
|
||||
If Not bootstrap Then 'dont reload state.json if we're in bootstrap mode
|
||||
Try
|
||||
xdoc = Newtonsoft.Json.JsonConvert.DeserializeXmlNode(wc.DownloadString("http://www.saltybet.com/state.json"), "saltybet")
|
||||
xdoc = Newtonsoft.Json.JsonConvert.DeserializeXmlNode(wc.DownloadString("https://www.saltybet.com/state.json"), "saltybet")
|
||||
Catch ex As Exception
|
||||
xdoc = Nothing
|
||||
End Try
|
||||
@ -660,7 +660,7 @@
|
||||
End If
|
||||
End While
|
||||
|
||||
|
||||
|
||||
|
||||
If qstr = "" Then
|
||||
found = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user