SOCKS Protocol Version 5 Library in Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.gitignore
LICENSE
README.md
bind.go
client.go udp support Nov 1, 2017
client_side.go
connect.go udp support Nov 1, 2017
init.go
server.go
server_side.go
server_test.go
socks5.go
udp.go udp support Nov 1, 2017
util.go
util_test.go ParseAddress support domain Mar 30, 2017

README.md

socks5

Go Report Card GoDoc

SOCKS Protocol Version 5 Library

Install

$ go get github.com/txthinking/socks5

Example

package main

import "github.com/txthinking/socks5"

func main() {
	socks5.Debug = true
	s, err := socks5.NewClassicServer("127.0.0.1:1080", "127.0.0.1", "", "", 0, 0, 0, 60)
	if err != nil {
		panic(err)
	}
	if err := s.Run(nil); err != nil {
		panic(err)
	}
}

Test with curl: curl -x socks5://127.0.0.1:1080 http://httpbin.org/ip

Users: