Skip to content

Commit 436a4e7

Browse files
committed
Fixed mix.exs
1 parent 5c07775 commit 436a4e7

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

docs/source/code.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Load the IP2Proxy BIN database for lookup.
88
```
99

1010
```{py:function} getpackageversion()
11-
Return the database's type, 1 to 10 respectively for PX1 to PX11. Please visit https://www.ip2location.com/databases/ip2proxy for details.
11+
Return the database's type, 1 to 12 respectively for PX1 to PX12. Please visit https://www.ip2location.com/databases/ip2proxy for details.
1212
1313
:return: Returns the package version.
1414
:rtype: String
@@ -56,4 +56,5 @@ Retrieve geolocation information for an IP address.
5656
| Last_seen | Proxy last seen in days. |
5757
| Threat | Security threat reported. |
5858
| Provider | Name of VPN provider if available. |
59+
| Fraud_score | Potential risk score (0 - 99) associated with IP address. A higher IP2Proxy Fraud Score indicates a greater likelihood of fraudulent activity and a lower reputation. |
5960
```

docs/source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# -- Project information
55

66
project = 'IP2Proxy Erlang'
7-
copyright = '2024, IP2Location'
7+
copyright = '2025, IP2Location'
88
author = 'IP2Location'
99

10-
release = '0.1.0'
11-
version = '0.1.0'
10+
release = '3.4.1'
11+
version = '3.4.1'
1212

1313
# -- General configuration
1414

@@ -57,4 +57,4 @@
5757

5858
html_title = "IP2Proxy Erlang"
5959

60-
# html_baseurl = "https://ip2proxy-D.readthedocs.io/en/latest/"
60+
# html_baseurl = "https://ip2proxy-erlang.readthedocs.io/en/latest/"

docs/source/quickstart.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ printme(V) ->
2828
case V of
2929
{} ->
3030
io:format("No results.~n", []);
31-
{ip2proxyrecord, Country_short, Country_long, Region, City, Isp, Proxy_type, Domain, Usage_type, Asn, As, Last_seen, Threat, Provider, Is_proxy} ->
31+
{ip2proxyrecord, Country_short, Country_long, Region, City, Isp, Proxy_type, Domain, Usage_type, Asn, As, Last_seen, Threat, Provider, Fraud_score Is_proxy} ->
3232
io:format("Country_short: ~p~n", [Country_short]),
3333
io:format("Country_long: ~p~n", [Country_long]),
3434
io:format("Region: ~p~n", [Region]),
@@ -42,13 +42,14 @@ printme(V) ->
4242
io:format("Last_seen: ~p~n", [Last_seen]),
4343
io:format("Threat: ~p~n", [Threat]),
4444
io:format("Provider: ~p~n", [Provider]),
45+
io:format("Fraud_score: ~p~n", [Fraud_score]),
4546
io:format("Is_proxy: ~p~n", [Is_proxy])
4647
end,
4748
io:format("===================================================================~n", []).
4849

4950
testme() ->
5051
X = "37.252.228.50",
51-
case ip2proxy:open("./ip2proxy-testdata/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL-PROVIDER.BIN") of
52+
case ip2proxy:open("./ip2proxy-testdata/IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL-PROVIDER-FRAUDSCORE.BIN") of
5253
0 ->
5354
io:format("getpackageversion: ~p~n", [ip2proxy:getpackageversion()]),
5455
io:format("getmoduleversion: ~p~n", [ip2proxy:getmoduleversion()]),
@@ -69,6 +70,7 @@ testme() ->
6970
io:format("Last_seen: ~p~n", [ip2proxy:getlastseen(X)]),
7071
io:format("Threat: ~p~n", [ip2proxy:getthreat(X)]),
7172
io:format("Provider: ~p~n", [ip2proxy:getprovider(X)]),
73+
io:format("Fraud_score: ~p~n", [ip2proxy:getfraudscore(X)]),
7274
io:format("Is_proxy: ~p~n", [ip2proxy:isproxy(X)]);
7375
_ ->
7476
io:format("Error reading BIN file~n", [])

ip2proxy.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ getpackageversion() ->
5353
end.
5454

5555
getmoduleversion() ->
56-
"3.4.0".
56+
"3.4.1".
5757

5858
getdatabaseversion() ->
5959
case ets:info(mymeta) of

mix.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ defmodule IP2ProxyErlang.MixProject do
44
def project() do
55
[
66
app: :ip2proxy_erlang,
7-
version: "3.4.0",
7+
version: "3.4.1",
88
elixir: "~> 1.0",
9+
erlc_paths: ["."],
910
build_embedded: Mix.env == :prod,
1011
start_permanent: Mix.env == :prod,
1112
description: description(),

0 commit comments

Comments
 (0)