Heavily based on the shapeshifter-dispatcher: https://github.com/OperatorFoundation/shapeshifter-dispatcher/
To use it:
ss := ShapeShifter{
Cert: "cert",
Target: "ip:port",
SocksAddr: "127.0.0.1:4430",
}
err := ss.Open()
if err != nil {
return err
}
defer ss.Close()And now you can tunnel your protocol into 127.0.0.1:4430.