aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/proxy_test.lua
blob: 841fefaf87b5e4f545c2ad468663216f624dd7b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
local milla = require("milla")
local os = require("os")
local json = require("json")

os.setenv("ALL_PROXY", "socks5://172.17.0.1:9057")

local http = require("http")

local response, err = http.request("GET", "https://icanhazip.com")
print(response.body)