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

GET /proxy/:local 如果是端口段,则无法GET请求到 #4

Open
j0hnnie opened this issue Sep 7, 2019 · 1 comment
Open

GET /proxy/:local 如果是端口段,则无法GET请求到 #4

j0hnnie opened this issue Sep 7, 2019 · 1 comment

Comments

@j0hnnie
Copy link

j0hnnie commented Sep 7, 2019

首先感谢采纳可以自定义config文件地址的建议,其次报一个BUG:

config.json 配置如下

[root@xxx portfwd]# cat config.json 
{
    "proxy": {
	"5000": "47.xxx.xxx.xxx:5000",
	"5001/8000": "47.xxx.xxx.xxx:5001"
    },
    "APIPort": ":3001"
}

单端口访问是正常的:http://portfwd.xxx:3001/proxy/5000
端口段访问失败的/:http://portfwd.xxx:3001/proxy/5001/8000

** 建议端口段通过-分隔而不是通过/

@muzea
Copy link
Owner

muzea commented Sep 7, 2019

端口要做 urlencode

实际应该是 http://portfwd.xxx:3001/proxy/5001%2F8000

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