From df98167eef3ef02a4adc0bdc8f99acbcba03cba3 Mon Sep 17 00:00:00 2001 From: Anders Pitman Date: Sun, 27 Sep 2020 09:42:39 -0600 Subject: [PATCH] Make sirtunnel.go match latest protocol --- main.go => sirtunnel.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) rename main.go => sirtunnel.go (87%) diff --git a/main.go b/sirtunnel.go similarity index 87% rename from main.go rename to sirtunnel.go index 6d74f15..aa87b45 100644 --- a/main.go +++ b/sirtunnel.go @@ -4,7 +4,6 @@ import ( "fmt" "os" "os/signal" - "strings" "net/http" "bytes" ) @@ -13,10 +12,9 @@ import ( func main() { args := os.Args[1:] - tunnelSpecParts := strings.Split(args[0], ":") - tunnelId := args[0] - host := tunnelSpecParts[0] - port := tunnelSpecParts[1] + host := args[0] + port := args[1] + tunnelId := host + "-" + port client := &http.Client{}