Make sirtunnel.go match latest protocol

This commit is contained in:
Anders Pitman 2020-09-27 09:42:39 -06:00
parent 6ce1c347ae
commit df98167eef

View file

@ -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{}