Skip to content

Commit 98e8660

Browse files
committed
- Remove new keyword from Socks4aProxyClient
- AppVeyor: nuget package publishing on GitHub Releases - Disable MSBuild warning 1573 (undocumented parameter)
1 parent 41e3542 commit 98e8660

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Leaf.xNet/Leaf.xNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<Copyright>© 2018-2020 Developed by Grand Silence — Kelog Studio</Copyright>
4949
<PackageTags>net,http,socks,proxy,cloudflare,xnet,https,stormwall,useragent,parsing,bot,web,crowling</PackageTags>
5050
<PackageIcon>icon.png</PackageIcon>
51-
<NoWarn>1591</NoWarn>
51+
<NoWarn>1591,1573</NoWarn>
5252
<Description>Improved xNet for .NET Framework 4.5.2+ &amp; .NET Core 2+</Description> <!-- Ignore warinings abound undocumented code -->
5353
</PropertyGroup>
5454

Leaf.xNet/Services/Cloudflare/ChallengeSolver.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public static class ChallengeSolver
2525
/// </summary>
2626
/// <param name="challengePageContent">The HTML content of the clearance page, which contains the challenge.</param>
2727
/// <param name="targetHost">The hostname of the protected website.</param>
28+
/// <param name="targetPort">The port of the protected website.</param>
2829
/// <returns>The solution.</returns>
2930
public static ChallengeSolution Solve(string challengePageContent, string targetHost, int targetPort)
3031
{

Leaf.xNet/~Proxy/Socks4aProxyClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static bool TryParse(string proxyAddress, out Socks4AProxyClient result)
8383

8484

8585
// ReSharper disable once UnusedMember.Global
86-
internal new void SendCommand(NetworkStream nStream, byte command, string destinationHost, int destinationPort)
86+
internal void SendCommand(NetworkStream nStream, byte command, string destinationHost, int destinationPort)
8787
{
8888
var dstPort = GetPortBytes(destinationPort);
8989
byte[] dstIp = { 0, 0, 0, 1 };

appveyor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ build:
2828
publish_nuget: true
2929
verbosity: minimal
3030
artifacts:
31+
- path: Leaf.xNet\bin\Release\Leaf.xNet.$(appveyor_build_version).nupkg
32+
name: Leaf.xNet_v$(appveyor_build_version)__Nuget_All_Targets
3133
- path: Leaf.xNet\bin\Release\net452
3234
name: Leaf.xNet_v$(appveyor_build_version)__NET_Framework_4.5.2
3335
- path: Leaf.xNet\bin\Release\net462
@@ -50,7 +52,7 @@ deploy:
5052
release: Leaf.xNet v$(appveyor_build_version)
5153
auth_token:
5254
secure: NQtMOO3yB309cDK/pFWRiQ==
53-
artifact: Leaf.xNet_v$(appveyor_build_version)__NET_Framework_4.5.2;Leaf.xNet_v$(appveyor_build_version)__NET_Framework_4.6.2;Leaf.xNet_v$(appveyor_build_version)__NET_Framework_4.7.2;Leaf.xNet_v$(appveyor_build_version)__NET_Framework_4.8;Leaf.xNet_v$(appveyor_build_version)__NET_Standard_2.0
55+
artifact: Leaf.xNet_v$(appveyor_build_version)__Nuget_All_Targets;Leaf.xNet_v$(appveyor_build_version)__NET_Framework_4.5.2;Leaf.xNet_v$(appveyor_build_version)__NET_Framework_4.6.2;Leaf.xNet_v$(appveyor_build_version)__NET_Framework_4.7.2;Leaf.xNet_v$(appveyor_build_version)__NET_Framework_4.8;Leaf.xNet_v$(appveyor_build_version)__NET_Standard_2.0
5456
on:
5557
branch: master
5658
only_commits:

0 commit comments

Comments
 (0)