Skip to content

Commit 648b398

Browse files
committed
Random proxy with nil to use local ip
1 parent ee4a928 commit 648b398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instagram/ins_web_api.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ defmodule Ins.Web.API do
191191
defp get_random_proxy() do
192192
proxys = System.get_env("PROXYS")
193193
if proxys != nil do
194-
proxys |> String.split(",") |> Enum.random
194+
proxys |> String.split(",") |> (fn(s) -> s ++ [nil] end).() |> Enum.random
195195
else
196196
nil
197197
end

0 commit comments

Comments
 (0)