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" "fmt"
"os" "os"
"os/signal" "os/signal"
"strings"
"net/http" "net/http"
"bytes" "bytes"
) )
@ -13,10 +12,9 @@ import (
func main() { func main() {
args := os.Args[1:] args := os.Args[1:]
tunnelSpecParts := strings.Split(args[0], ":") host := args[0]
tunnelId := args[0] port := args[1]
host := tunnelSpecParts[0] tunnelId := host + "-" + port
port := tunnelSpecParts[1]
client := &http.Client{} client := &http.Client{}