-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Hello,
This project is incredible, amazing work. It would be neat to have the ability to create port forwards to multiple different destinations other than 127.0.0.1. I wanted to ask both as a feature suggestion/request and also to figure out the best way to go about adding such a feature.
I added a "destination/-d" command line option to serpent in serve.go and changed the net.Dial in that file to support this and it worked as intended. However with this setup, the server side must specify a single destination IP ahead of time. Would it be technically possible to specify one or more destinations from the client side?
// Allow server to specify alternate port-forward destination address
serve.go
dst, err := net.Dial("tcp", fmt.Sprintf("%s:%d", destAddr, dst.Port()))
Thank you