conn, err := tunnel.DialViaProxy(proxyUrl, "farend:5000")
if err != nil {
log.Fatal(err)
}
defer conn.Close()
if conn != nil {
fmt.Println("Connection ready to use")
}
// ...proceed with net.Conn operations
-
Notifications
You must be signed in to change notification settings - Fork 1
Provides a specialized version of net.Dial that can establish a tunnelled TCP connection via an HTTP proxy that supports the CONNECT method per RFC 2817
License
jbeshay/go-connect-tunnel
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Provides a specialized version of net.Dial that can establish a tunnelled TCP connection via an HTTP proxy that supports the CONNECT method per RFC 2817
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published