Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F13810107
tor.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
334 B
Subscribers
None
tor.go
View Options
package
api
import
(
"fmt"
"net/http"
"code.as/core/socks"
)
var
(
TorPort
=
9150
)
// TODO: never used?
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
Wed, Feb 11, 8:04 PM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3625246
Attached To
rWCLI writeas-cli
Event Timeline
Log In to Comment