mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-04-28 19:13:21 +00:00
25 lines
739 B
Go
25 lines
739 B
Go
package proxy
|
|
|
|
import "testing"
|
|
|
|
func TestProxy(t *testing.T) {
|
|
//create default session if required
|
|
|
|
proxy := &VncProxy{
|
|
wsListeningUrl: "http://localhost:7777/", // empty = not listening on ws
|
|
recordingDir: "/Users/amitbet/vncRec", // empty = no recording
|
|
targetServersPassword: "Ch_#!T@8", //empty = no auth
|
|
SingleSession: &VncSession{
|
|
TargetHostname: "localhost",
|
|
TargetPort: "5903",
|
|
TargetPassword: "vncPass",
|
|
ID: "dummySession",
|
|
Status: SessionStatusActive,
|
|
Type: SessionTypeRecordingProxy,
|
|
}, // to be used when not using sessions
|
|
UsingSessions: false, //false = single session - defined in the var above
|
|
}
|
|
|
|
proxy.StartListening()
|
|
}
|