ssh icon indicating copy to clipboard operation
ssh copied to clipboard

Bug: when port is 0,will cause connection be override

Open linpinger opened this issue 4 years ago • 0 comments

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

linpinger avatar Oct 21 '21 03:10 linpinger