Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Commit 3dbda71

Browse files
Add files via upload
1 parent 2e70164 commit 3dbda71

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

C#/MainWindow.xaml.cs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public partial class MainWindow : Window
3131

3232
int MajorV = 1;
3333
int MinorV = 1;
34-
int PatchV = 0;
34+
int PatchV = 1;
3535
Boolean Preview = false;
3636

3737
String IP = "";
@@ -277,7 +277,7 @@ public int CheckVer()
277277
public Boolean CheckIP()
278278
{
279279
getQuestIP();
280-
if(IP == "Quest IP")
280+
if (IP == "Quest IP")
281281
{
282282
return false;
283283
}
@@ -286,19 +286,24 @@ public Boolean CheckIP()
286286
IP = IP.Replace(":50000", "");
287287
IP = IP.Replace(":5000", "");
288288
IP = IP.Replace(":500", "");
289-
IP = IP.Replace(":500", "");
290289
IP = IP.Replace(":50", "");
291290
IP = IP.Replace(":5", "");
291+
IP = IP.Replace(":", "");
292+
IP = IP.Replace("/", "");
293+
IP = IP.Replace("https", "");
294+
IP = IP.Replace("http", "");
295+
IP = IP.Replace("Http", "");
296+
IP = IP.Replace("Https", "");
292297

293298
int count = 0;
294-
for(int i = 0; i < IP.Length; i++)
299+
for (int i = 0; i < IP.Length; i++)
295300
{
296-
if(IP.Substring(i, 1) == ".")
301+
if (IP.Substring(i, 1) == ".")
297302
{
298303
count++;
299304
}
300305
}
301-
if(count != 3)
306+
if (count != 3)
302307
{
303308
Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new Action(delegate {
304309
Quest.Text = IP;
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)