mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-09-10 17:39:23 +00:00
* some debugging and fixing in the proxy (still needs some work)
* added a logger and stringers for message types
This commit is contained in:
24
proxy/proxy_test.go
Normal file
24
proxy/proxy_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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: "c:\\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()
|
||||
}
|
Reference in New Issue
Block a user