Page MenuHomeMusing Studio

tor.go
No OneTemporary

package main
import (
"fmt"
"github.com/hailiang/gosocks"
"net/http"
)
var (
torPort = 9150
)
func torClient() *http.Client {
dialSocksProxy := socks.DialSocksProxy(socks.SOCKS5, fmt.Sprintf("127.0.0.1:%d", torPort))
transport := &http.Transport{Dial: dialSocksProxy}
return &http.Client{Transport: transport}
}

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 1:53 AM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3135659

Event Timeline