Created
January 2, 2019 02:27
-
-
Save jhernandezb/6379223aaffcd4c8b8eae05f85d92dfb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "github.com/google/tcpproxy" | |
import "log" | |
func main() { | |
var p tcpproxy.Proxy | |
p.AddRoute(":9000", tcpproxy.To("server.com:9000")) | |
log.Println("starting proxy") | |
log.Fatal(p.Run()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment