/socks5

Golang version socks5 server

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Go socks5 library

SOCKS5 server in Go.

Feature

  • Daily use ready
  • Support No Auth
  • Support CONNECT cmd

TODO

  • Unit tests
  • Password Auth
  • Support BIND cmd
  • Support UDP
  • Support custome DNS
  • Benchmark

Example

package main

import (
        "log"
        "time"

        "github.com/tonyluj/socks5"
)

func main() {
        s, err := socks5.New(":8080", time.Second*5*60)
        if err != nil {
                log.Fatal(err)
        }

        err = s.Listen()
        if err != nil {
                log.Fatal(err)
        }
}