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

Generate new ID on initiating project. #1

Open
mehdiMj-ir opened this issue Oct 12, 2022 · 1 comment
Open

Generate new ID on initiating project. #1

mehdiMj-ir opened this issue Oct 12, 2022 · 1 comment

Comments

@mehdiMj-ir
Copy link

Hi, First of all thanks for your considerations and creating this repository.

For more security stand point I suggest generating new client id on initiating project, using cat /proc/sys/kernel/random/uuid or a for loop on setup.sh

for CLIENT in $(grep -c CLIENT1,CLIENT2,CLIENT3 config/config.json); do
  sed -i "s/CLIENT/$(cat /proc/sys/kernel/random/uuid)/g" config/config.json;
done

also config.json file must be

...
      "clients": [
        {
          "id": "CLIENT1",
          "alterId": 10,
          "security": "auto"
        },        {
          "id": "CLIENT2",
          "alterId": 10,
          "security": "auto"
        },    {
          "id": "CLIENT3",
          "alterId": 10,
          "security": "auto"
        }
]
...
@straxico
Copy link
Owner

work on it tonight

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