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

v2ray v5 socks无法使用账号密码 #3097

Open
html365 opened this issue Jul 28, 2024 · 2 comments
Open

v2ray v5 socks无法使用账号密码 #3097

html365 opened this issue Jul 28, 2024 · 2 comments

Comments

@html365
Copy link

html365 commented Jul 28, 2024



What version of V2Ray are you using?


v5





What's your scenario of using V2Ray?




使用socks连接中转服务器


What problems have you encountered?




从源码看到socks5直接选用了noAuth


What's your expectation?


支持账号密码


Please attach your configuration here




Server configuration:

{
"inbounds": [
{
"protocol": "socks",
"port": "55555",
"settings": {
"udpEnabled": true,
"address":"127.0.0.1",
"users":[
{
"user": "test",
"pass": "test"
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}



Client configuration:


// Please attach your client configuration here.




Please attach error logs here

Failed to start: main/commands: failed to load config: [config.json] > infra/conf/v5cfg: unable to build config > infra/conf/v5cfg: unable to load inbound protocol config > common/registry: unable to parse json content > unknown field "users" in v2ray.core.proxy.socks.simplified.ServerConfig


Server error log:


// Please attach your server error log here.



Client error log:


// Please attach your client error log here.




Please attach access log here





// Please attach your server access log here.




Other configurations (such as Nginx) and logs here





If V2Ray cannot start up, please attach output from --test command





If V2Ray service is abnormal, please attach journal log here







@devxu
Copy link

devxu commented Aug 16, 2024

从官网文档来看,inbounds里配置是这样的:
https://www.v2fly.org/config/protocols/socks.html#outboundconfigurationobject

@arinc9
Copy link

arinc9 commented Aug 17, 2024

@devxu that is the v4 format. On the v5 format, authType is hardcoded to noAuth.

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

3 participants