Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleTunnelRequest ¶
func HandleTunnelRequest(refs References, ctx context.Context, cfg *config.Config, req ws.TunnelRequest, write ws.PTYWriteFunc, passkeyCache *auth.AuthCache, passkeyChallenges *auth.ChallengeCache, passkeyPolicy auth.PasskeyPolicy, privKey *ecdh.PrivateKey, home string, audit, debug bool, client *ws.Client, peerMgr *webrtcpkg.PeerManager, dcSessions *sync.Map, sharedHostArg ...bool)
handleTunnelRequest decrypts and dispatches an encrypted tunnel request from the browser.
Types ¶
type References ¶
type References struct {
Version string
Sessions *wingsession.Service
WingCfg *config.WingConfig
WingCfgMu *sync.Mutex
AllowedKeys *[]config.AllowKey
WingEggMu *sync.Mutex
WingEggCfg **egg.EggConfig
BrowserTools func() []*config.ToolConfig
ListAliveEggSessions func(*config.Config) []ws.SessionInfo
ResizeBrowserInput func(context.Context, string, string, string, string, uint32, uint32) error
KillSessionsViolatingACLs func(*config.Config, config.PathList, string)
}
References supplies the runtime's live configuration and wing callbacks. Mutexes and configuration pointers retain their original identities.
Click to show internal directories.
Click to hide internal directories.