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"
|
"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{}
|
||||||
|
|
Loading…
Reference in a new issue