From f23ef8ad913f793549620439fa1dea01e21148df Mon Sep 17 00:00:00 2001 From: moosecrab Date: Sat, 27 Jun 2020 01:39:07 -0700 Subject: [PATCH] Switched the fetch request to state.json to use HTTPS to avoid uneeded redirects. --- PepperBet/PepperBet.vb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PepperBet/PepperBet.vb b/PepperBet/PepperBet.vb index 25b4a65..b946ce6 100755 --- a/PepperBet/PepperBet.vb +++ b/PepperBet/PepperBet.vb @@ -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