dont wait for response

This commit is contained in:
Dylan Parker 2023-01-08 05:04:44 -06:00
parent 9640e6dc2d
commit 5eff7e1c08
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
log.Printf("lilproxy initialized") log.Printf("lilproxy initialized on port: (%s) target address: (%s)", port, target)
log.Fatal(c.ListenAndServe()) log.Fatal(c.ListenAndServe())
} }

View File

@ -40,7 +40,7 @@ func (s *Session) listen() error {
continue continue
} }
s.proxyFrom(buf[:n]) go s.proxyFrom(buf[:n])
} }
} }

View File

@ -63,7 +63,7 @@ func (c *Client) ListenAndServe() error {
c.sessions[caddr.String()] = session c.sessions[caddr.String()] = session
} }
session.proxyTo(buf[:n]) go session.proxyTo(buf[:n])
} }
} }