fix: panic due to nil pointer when disconnecting a session
Some checks failed
Docker Build and Push / build-and-push (push) Has been cancelled

This commit is contained in:
2025-12-02 21:52:23 +07:00
parent 626b6b5feb
commit f59de03a50
3 changed files with 19 additions and 21 deletions

View File

@ -10,9 +10,9 @@ import (
)
const (
INITIALIZING SessionStatus = "INITIALIZING"
RUNNING SessionStatus = "RUNNING"
SETUP SessionStatus = "SETUP"
INITIALIZING Status = "INITIALIZING"
RUNNING Status = "RUNNING"
SETUP Status = "SETUP"
)
type TunnelType string
@ -58,7 +58,7 @@ type Session interface {
}
type Lifecycle struct {
Status SessionStatus
Status Status
}
type Forwarder struct {