mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-04-27 10:50:47 +00:00
28 lines
868 B
Go
28 lines
868 B
Go
package proxy
|
|
|
|
import "testing"
|
|
|
|
func TestProxy(t *testing.T) {
|
|
//create default session if required
|
|
t.Skip("this isn't an automated test, just an entrypoint for debugging")
|
|
|
|
proxy := &VncProxy{
|
|
WsListeningURL: "http://0.0.0.0:7778/", // empty = not listening on ws
|
|
RecordingDir: "d:\\", // empty = no recording
|
|
TCPListeningURL: ":5904",
|
|
//RecordingDir: "C:\\vncRec", // empty = no recording
|
|
ProxyVncPassword: "1234", //empty = no auth
|
|
SingleSession: &VncSession{
|
|
TargetHostname: "192.168.1.101",
|
|
TargetPort: "5901",
|
|
TargetPassword: "123456",
|
|
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()
|
|
}
|