From 64128df45042f690fb4c683ac4a3511748ba5f2b Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 7 Jul 2017 18:10:41 +1000 Subject: [PATCH] Always use webproxy, lowers .NET required to 3.5 --- MCGalaxy/Network/Heartbeat/ClassiCube.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/MCGalaxy/Network/Heartbeat/ClassiCube.cs b/MCGalaxy/Network/Heartbeat/ClassiCube.cs index 6ad86322c..6e10a0767 100644 --- a/MCGalaxy/Network/Heartbeat/ClassiCube.cs +++ b/MCGalaxy/Network/Heartbeat/ClassiCube.cs @@ -27,9 +27,7 @@ namespace MCGalaxy.Network { public sealed class ClassiCubeBeat : Heartbeat { string url = "http://www.classicube.net/heartbeat.jsp"; - #if NET_20 string proxyUrl; - #endif public override string URL { get { return url; } } public override void Init() { @@ -57,12 +55,7 @@ namespace MCGalaxy.Network { } if (!useIPv6 || firstIPv4 == null) return; - - #if !NET_20 - url = "http://" + firstIPv4 + ":80/heartbeat.jsp"; - #else proxyUrl = "http://" + firstIPv4 + ":80"; - #endif } public override string GetHeartbeatData() { @@ -94,12 +87,8 @@ namespace MCGalaxy.Network { } public override void OnRequest(HttpWebRequest request) { - #if !NET_20 - request.Host = "www.classicube.net"; - #else if (proxyUrl == null) return; request.Proxy = new WebProxy(proxyUrl); - #endif } public override void OnResponse(string response) {