Skip to content

port-forward question #95

@username0101010101

Description

@username0101010101

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions