Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed single port forward remote setting #104

Merged
merged 4 commits into from
Jul 9, 2023
Merged

fixed single port forward remote setting #104

merged 4 commits into from
Jul 9, 2023

Conversation

kuckjwi0928
Copy link
Contributor

when forwarding a single port, the following error occurs because the PortFowardRemote setting is not set.

panic: runtime eror: invalid memory address or nil pointer dereference
                                                                                                    [signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x100613620]

                                                                                                                                                                              goroutine 51 [running]:
                                                                                                                                                                                                     io.copyBuffer({0x1009d39c0, 0x140001131d0}, {0x0, 0x0}, {0x0, 0x0, 0x0})
                                                       	/opt/homebrew/Cellar/go@1.17/1.17.13/libexec/src/io/io.go:423 +0x1a0
                                                                                                                            io.Copy(...)
                                                                                                                                        	/opt/homebrew/Cellar/go@1.17/1.17.13/libexec/src/io/io.go:382
                                                                                                                                                                                                             net.genericReadFrom({0x1009d2fa0, 0x1400011a0d8}, {0x0, 0x0})
                                                    	/opt/homebrew/Cellar/go@1.17/1.17.13/libexec/src/net/net.go:658 +0x74
                                                                                                                             net.(*TCPConn).readFrom(0x1400011a0d8, {0x0, 0x0})
                                                                                                                                                                               	/opt/homebrew/Cellar/go@1.17/1.17.13/libexec/src/net/tcpsock_posix.go:55 +0x48
                                        net.(*TCPConn).ReadFrom(0x1400011a0d8, {0x0, 0x0})
                                                                                          	/opt/homebrew/Cellar/go@1.17/1.17.13/libexec/src/net/tcpsock.go:104 +0x40
                                                                                                                                                                         io.copyBuffer({0x1009d2fa0, 0x1400011a0d8}, {0x0, 0x0}, {0x0, 0x0, 0x0})
                           	/opt/homebrew/Cellar/go@1.17/1.17.13/libexec/src/io/io.go:409 +0x124
                                                                                                    io.Copy(...)
                                                                                                                	/opt/homebrew/Cellar/go@1.17/1.17.13/libexec/src/io/io.go:382
                                                                                                                                                                                     github.com/blacknon/lssh/vendor/github.com/blacknon/go-sshlib.(*Connect).forwarder.func2({0x1009e1550, 0x1400011a0d8}, {0x0, 0x0}, 0x140001470b0)
                                                                                                                	/Users/kuckjwi/go/src/github.com/blacknon/lssh/vendor/github.com/blacknon/go-sshlib/forward.go:301 +0x98
          created by github.com/blacknon/lssh/vendor/github.com/blacknon/go-sshlib.(*Connect).forwarder

so i modified it to also specify the PortFowardRemote setting.

blacknon and others added 4 commits February 16, 2022 22:19
Update Version 0.6.5

- go-prompt version up to 0.2.6
- Changed the key input mechanism of the parallel shell.
Version 0.6.7

Close #86 
Close #91 
Close #92 

- Supported Windows.
- Add Reverse Dynamic Forward.
- Add localrc compress option.
- Addition of function to specify host in target PATH with shell command of lsftp. 
    - example: `get host1,host2:/path/to/src /path/to/dest`
@blacknon
Copy link
Owner

blacknon commented Jul 9, 2023

Thanks.
I'll put it in the next version.

@blacknon blacknon changed the base branch from master to develop July 9, 2023 12:48
@blacknon blacknon merged commit aeefa71 into blacknon:develop Jul 9, 2023
@blacknon blacknon mentioned this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants