mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-06-20 11:32:39 +00:00
27 lines
841 B
Go
27 lines
841 B
Go
package proxy
|
|
|
|
import "testing"
|
|
|
|
func TestProxy(t *testing.T) {
|
|
//create default session if required
|
|
|
|
proxy := &VncProxy{
|
|
WsListeningUrl: "http://localhost:8183/", // empty = not listening on ws
|
|
RecordingDir: "", //"/Users/amitbet/vncRec", // empty = no recording
|
|
TcpListeningUrl: ":5905",
|
|
//recordingDir: "C:\\vncRec", // empty = no recording
|
|
ProxyVncPassword: "", //empty = no auth
|
|
SingleSession: &VncSession{
|
|
TargetHostname: "192.168.1.101",
|
|
TargetPort: "5900",
|
|
TargetPassword: "ancient1", //"Ch_#!T@8", //
|
|
ID: "dummySession",
|
|
Status: SessionStatusInit,
|
|
Type: SessionTypeRecordingProxy,
|
|
}, // to be used when not using sessions
|
|
UsingSessions: false, //false = single session - defined in the var above
|
|
}
|
|
|
|
proxy.StartListening()
|
|
}
|