Skip to content

Commit d78bdcc

Browse files
committed
Update is_proxy to show -1 when error
1 parent 017e9bd commit d78bdcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ip2proxy.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ searchtree(S, Ipnum, Dbtype, Low, High, BaseAddr, Colsize, Iptype, Mode) ->
265265
city = X,
266266
isp = X,
267267
proxy_type = X,
268-
is_proxy = X
268+
is_proxy = -1
269269
}
270270
end.
271271

@@ -374,7 +374,7 @@ query(Ip, Mode) ->
374374
city = X,
375375
isp = X,
376376
proxy_type = X,
377-
is_proxy = X
377+
is_proxy = -1
378378
}
379379
end;
380380
_ ->
@@ -385,7 +385,7 @@ query(Ip, Mode) ->
385385
city = Y,
386386
isp = Y,
387387
proxy_type = Y,
388-
is_proxy = Y
388+
is_proxy = -1
389389
}
390390
end
391391
end

0 commit comments

Comments
 (0)