Bug: when port is 0,will cause connection be override
Open
- Dominant language
- Go
- Stars
- 4.2k
- Forks
- 509
- PR merge metrics
- No merged PRs in 30d
Description
tcpip.go
line 114: addr := net.JoinHostPort(reqPayload.BindAddr, strconv.Itoa(int(reqPayload.BindPort)))
when BindPort = 0, bind will success, but port is changed to random
if there are more then 1 "tcpip-forward", h.forwards[addr] = ln will be override
i fork this lib and fix the bug https://github.com/linpinger/ssh/blob/master/tcpip.go
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.