fix: handle closed connection access to prevent runtime error
This commit is contained in:
@ -56,6 +56,7 @@ func (s *Session) handleGlobalRequest() {
|
||||
break
|
||||
}
|
||||
Clients[slug] = s
|
||||
s.Slug = slug
|
||||
buf := new(bytes.Buffer)
|
||||
binary.Write(buf, binary.BigEndian, uint32(portToBind))
|
||||
log.Printf("Forwarding approved on port: %d", portToBind)
|
||||
|
||||
Reference in New Issue
Block a user