Open tormentous opened 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?
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.
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?