Skip to content

Commit 4f01c42

Browse files
committed
Fixed negative BigInteger issue
1 parent a267ec0 commit 4f01c42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

IP2ProxyComponent/IP2ProxyComponent/IP2Proxy.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ Public Class Component
816816
End Function
817817

818818
Private Function Read32Or128Row(ByRef Row() As Byte, ByVal ByteOffset As Integer, ByVal Len As Integer) As BigInteger
819-
Dim _Byte(Len - 1) As Byte
819+
Dim _Byte(Len) As Byte ' extra 1 zero byte at the end is for making the BigInteger unsigned
820820
Array.Copy(Row, ByteOffset, _Byte, 0, Len)
821821
Return New BigInteger(_Byte)
822822
End Function

IP2ProxyComponent/IP2ProxyComponent/IP2ProxyComponent.vbproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<RootNamespace>IP2Proxy</RootNamespace>
55
<TargetFrameworks>netstandard2.0;net472</TargetFrameworks>
66
<AssemblyName>IP2Proxy</AssemblyName>
7-
<Version>3.3.0</Version>
7+
<Version>3.3.1</Version>
88
<Authors>IP2Proxy.com</Authors>
99
<Company>IP2Proxy.com</Company>
1010
<Product>IP2Proxy .NET Component</Product>
@@ -15,7 +15,7 @@
1515
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1616
<PackageProjectUrl>https://www.ip2location.com/development-libraries/ip2proxy/dot-net</PackageProjectUrl>
1717
<PackageIcon>ip2proxy-logo-square-128.png</PackageIcon>
18-
<PackageReleaseNotes>Reduced file I/O.</PackageReleaseNotes>
18+
<PackageReleaseNotes>Fixed negative BigInteger issue.</PackageReleaseNotes>
1919
<RepositoryUrl>https://github.com/ip2location/ip2proxy-dotnet.git</RepositoryUrl>
2020
<PackageTags>ip2proxy proxy detection</PackageTags>
2121
<RepositoryType>git</RepositoryType>

0 commit comments

Comments
 (0)