Skip to content

Commit

Permalink
add few lines
Browse files Browse the repository at this point in the history
  • Loading branch information
thegodenage committed Apr 20, 2024
1 parent 6d952ef commit de4b1ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/proxy/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type Sender interface {
// incoming tcp connections
type TCPReceiver struct {
localAddr string // localAddr is an address of the proxy server
sender Sender // sender is a sender where tcp bytes are supposed to be redirected
}

func NewTCPReceiver(localAddr string) *TCPReceiver {
Expand All @@ -36,7 +37,10 @@ func (r *TCPReceiver) Run() error {
conn, err := listener.AcceptTCP()
if err != nil {
fmt.Printf("failed to accept TCP connection: %s", err.Error())

continue
}

}

return nil
Expand Down

0 comments on commit de4b1ff

Please sign in to comment.