Skip to content

Latest commit

 

History

History
 
 

outline-fetch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Outline Fetch

This app illustrates how to use different transports to fetch a URL in Go.

Direct fetch:

$ go run ./x/examples/outline-fetch/main.go https://ipinfo.io
{
  ...
  "city": "Amsterdam",
  "region": "North Holland",
  "country": "NL",
  ...
}                                  

Using a Shadowsocks server:

$ go run ./x/examples/outline-fetch/main.go -transport ss://[redacted]@[redacted]:80 https://ipinfo.io
{
  ...
  "region": "New Jersey",
  "country": "US",
  "org": "AS14061 DigitalOcean, LLC",
  ...
}

Using a SOCKS5 server:

$ go run ./x/examples/outline-fetch/main.go -transport socks5://[redacted]:5703 https://ipinfo.io
{
  ... 
  "city": "Berlin",
  "region": "Berlin",
  "country": "DE",
  ...
}