Skip to content

Commit e04c0d4

Browse files
committed
fixed telnet connection
1 parent 9a65612 commit e04c0d4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

go-version/vmix-snapshot-proxy.exe

0 Bytes
Binary file not shown.

go-version/vmix-snapshot-proxy.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,10 @@ func main() {
161161
accum := []byte{}
162162
for {
163163
if conn == nil {
164-
conn, telnetError = net.Dial("tcp", "localhost:8099")
165-
if telnetError == nil {
166-
fmt.Println("No connection to vMix Telent API: (localhost:8099)")
164+
address := "localhost:8099"
165+
conn, telnetError = net.Dial("tcp", address)
166+
if telnetError != nil {
167+
fmt.Printf("No connection to vMix Telent API: (%s)\r\n", address)
167168
continue
168169
}
169170
conn.Write([]byte("SUBSCRIBE TALLY\r\n"))

go-version/vmix-snapshot-proxy.zip

66 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)