Page MenuHomeMusing Studio

tor.go
No OneTemporary

package main
import (
"code.as/core/socks"
"fmt"
"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:21 AM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3136778

Event Timeline