tunnel

package
v0.149.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 33 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL