MatsuriDayo / NekoBoxForAndroid

NekoBox for Android / sing-box / universal proxy toolchain for Android
https://matsuridayo.github.io/
Other
9.74k stars 840 forks source link

hysteria2: support userpass #646

Open superbarney opened 2 months ago

superbarney commented 2 months ago

Description suggestions

hysteria2 supports multiple users with their own individual passwords but NekoBox doesn't seem to allow the input for users

Necessity of recommendations

Is userpass currently supported and I'm doing it wrong? Thanks.

zhanbao2000 commented 2 months ago

If you set userpass on your server like this:

auth:
  type: userpass
  userpass:
    user1: pass1
    user2: pass2

You should fill in user1:pass1 in your password field.

This works in my version (1.3.0)

superbarney commented 2 months ago

I did not change the auth type from "password" to "userpass" in hysteria2's server configuration. I can confirm it works after switching auth type to "userpass".

Thank you.