feat(port): disable TCP forwarding by default and refactor port manager
All checks were successful
renovate / renovate (push) Successful in 28s
Docker Build and Push / build-and-push (push) Successful in 5m27s

This commit is contained in:
2025-12-28 19:03:26 +07:00
parent a2676a4f30
commit 1d918ef2aa
3 changed files with 36 additions and 25 deletions

View File

@@ -85,7 +85,7 @@ func (l *Lifecycle) Close() error {
}
if l.Forwarder.GetTunnelType() == types.TCP {
err := portUtil.Manager.SetPortStatus(l.Forwarder.GetForwardedPort(), false)
err := portUtil.Default.SetPortStatus(l.Forwarder.GetForwardedPort(), false)
if err != nil {
return err
}