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

某个节点开启端口转发之后,在切换到其他节点开启端口转发bug #41

Closed
zyylhn opened this issue Jul 16, 2022 · 2 comments

Comments

@zyylhn
Copy link

zyylhn commented Jul 16, 2022

某个节点开启端口转发之后,在切换到其他节点开启端口转发的话,manager.forwardMap会被重新make,导致之前的记录被删掉,并且listener没有被关掉,会导致addconn函数爆空指针异常。

manager.forwardMap = make(map[string]map[string]*forward)

建议注视掉这一行,在新建manager的时候就已经make了,不需要重新make

@ph4ntonn
Copy link
Owner

已经确定了此问题会同时在forward&backward中出现,是我疏忽了
今晚即会更新代码及release
感谢师傅的反馈~

@ph4ntonn
Copy link
Owner

已在366d6a5 中修复此问题
再次感谢师傅~

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

No branches or pull requests

2 participants