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

建议按端口段的配置的target还是应该要写上端口段结束端口,因为api用的时候方便识别 #6

Open
j0hnnie opened this issue Sep 7, 2019 · 0 comments

Comments

@j0hnnie
Copy link

j0hnnie commented Sep 7, 2019

比如config.json 里proxy加一条
"5000-8000":"47.xxx.xxx.xxx:5000" (此处原本是 5000/8000,我个人建议用 - 分隔,不然有BUG,详情见 #5
虽然大佬你已经解释说写上结束的端口号没有意义,但是 通过api读取出来的值就是一脸懵逼了,所以还是建议 配置可以写成:"5000-8000":"47.xxx.xxx.xxx:5000-8000",并且在程序里判断,如果配置写错了,则启动portfwd时报错
例如我把 "5000-8000":"47.xxx.xxx.xxx:5000-8000" 写错写成了:"5000-8000":"47.xxx.xxx.xxx:5000-8001"

@j0hnnie j0hnnie changed the title 建议按端口段的配置还是target还是应该要按端口段结束,api用的时候特别好用 建议按端口段的配置的target还是应该要按端口段结束,api用的时候特别好用 Sep 7, 2019
@j0hnnie j0hnnie changed the title 建议按端口段的配置的target还是应该要按端口段结束,api用的时候特别好用 建议按端口段的配置的target还是应该要写上端口段结束端口,因为api用的时候特别好用 Sep 7, 2019
@j0hnnie j0hnnie changed the title 建议按端口段的配置的target还是应该要写上端口段结束端口,因为api用的时候特别好用 建议按端口段的配置的target还是应该要写上端口段结束端口,因为api用的时候方便识别 Sep 7, 2019
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

1 participant