mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-04-27 18:55:13 +00:00
This change add support for targeting a VNC server via a local UNIX socket. It introduces a new `-target` CLI flag able to handle both TCP "address:port" and "/path/to/unix.socket" formats, and deprecates the previous `-targHost` and `-targPort` flags for future removal.
28 lines
479 B
Go
28 lines
479 B
Go
package proxy
|
|
|
|
type SessionStatus int
|
|
type SessionType int
|
|
|
|
const (
|
|
SessionStatusInit SessionStatus = iota
|
|
SessionStatusActive
|
|
SessionStatusError
|
|
)
|
|
|
|
const (
|
|
SessionTypeRecordingProxy SessionType = iota
|
|
SessionTypeReplayServer
|
|
SessionTypeProxyPass
|
|
)
|
|
|
|
type VncSession struct {
|
|
Target string
|
|
TargetHostname string
|
|
TargetPort string
|
|
TargetPassword string
|
|
ID string
|
|
Status SessionStatus
|
|
Type SessionType
|
|
ReplayFilePath string
|
|
}
|