ssh
ssh copied to clipboard
Bug: when port is 0,will cause connection be override
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