Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10384469
tor.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
322 B
Subscribers
None
tor.go
View Options
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
Details
Attached
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
Attached To
rWCLI writeas-cli
Event Timeline
Log In to Comment