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
Sat, Nov 23, 4:35 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3104653

Event Timeline