Make sirtunnel.go match latest protocol
This commit is contained in:
parent
6ce1c347ae
commit
df98167eef
1 changed files with 3 additions and 5 deletions
|
@ -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{}
|
||||
|
Loading…
Reference in a new issue