staging #57

Merged
bagas merged 5 commits from staging into main 2026-01-03 13:07:50 +00:00
3 changed files with 6 additions and 2 deletions
Showing only changes of commit 9276430fae - Show all commits

View File

@@ -106,7 +106,6 @@ func (s *SSHSession) HandleTCPIPForward(req *ssh.Request) {
}
portToBind := uint16(rawPortToBind)
if isBlockedPort(portToBind) {
log.Printf("Port %d is blocked or restricted", portToBind)
err := req.Reply(false, nil)

View File

@@ -199,6 +199,11 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
if m.editingSlug {
if m.tunnelType != types.HTTP {
m.editingSlug = false
m.slugError = ""
return m, tea.Batch(tea.ClearScreen, textinput.Blink)
}
switch msg.String() {
case "esc":
m.editingSlug = false

View File

@@ -92,7 +92,7 @@ func (s *SSHSession) Start() error {
s.lifecycle.SetChannel(ch)
s.interaction.SetChannel(ch)
go s.HandleTCPIPForward(tcpipReq)
s.HandleTCPIPForward(tcpipReq)
if err := s.lifecycle.Close(); err != nil {
log.Printf("failed to close session: %v", err)