txthinking / socks5

SOCKS Protocol Version 5 Library in Go. Full TCP/UDP and IPv4/IPv6 support
https://www.txthinking.com
MIT License
656 stars 116 forks source link

custom handler? #20

Open tormentous opened 4 months ago

tormentous commented 4 months ago

func ExampleServer() { s, err := socks5.NewClassicServer("127.0.0.1:1080", "127.0.0.1", "", "", 0, 60) if err != nil { log.Println(err) return } // You can pass in custom Handler s.ListenAndServe(nil) // #Output: }

I'm new, can you give an example or clarification in passing a custom Handler?

l4uZP commented 1 week ago

I came here looking for the same thing. I want to redirect custom traffic over Tor but I don't understand how to set up this scenario.