Skip to content
SOCKS Protocol Version 5 Library in Go
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 github dir Nov 4, 2016
.gitignore Initial commit Nov 4, 2016
LICENSE update license Dec 23, 2016
README.md readme Nov 8, 2017
bind.go opensource Jan 2, 2017
client.go udp support Nov 1, 2017
client_side.go udp support Nov 1, 2017
connect.go udp support Nov 1, 2017
init.go rename ant to x Nov 28, 2018
server.go log Apr 4, 2019
server_side.go udp support Nov 1, 2017
server_test.go use ip instead of udp addr Nov 4, 2017
socks5.go udp support Nov 1, 2017
udp.go udp support Nov 1, 2017
util.go udp support Nov 1, 2017
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:

You can’t perform that action at this time.