Skip to content

Commit

Permalink
fix out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongda committed Jun 19, 2024
1 parent b5983ed commit 7196ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ func main() {
go scavenger(chScavenger, &config)

// start listener
numconn := uint16(config.Conn)
rlen := (uint16)(len(config.RemoteAddr))
numconn := uint16(config.Conn * int(rlen))
muxes := make([]timedSession, numconn)
rr := uint16(0)
rlen := (uint16)(len(config.RemoteAddr))
for {
p1, err := listener.Accept()
if err != nil {
Expand Down

0 comments on commit 7196ed8

Please sign in to comment.