wireguard-install icon indicating copy to clipboard operation
wireguard-install copied to clipboard

Revoking user then creating new user with same name causes config generation errors

Open icoexist opened this issue 3 years ago • 0 comments

When revoking a user, if a new user is then created with the same name, it will generate a bad config that cannot used. This is due to the old config not being deleted, or overwritten. Instead, the new config is appended to the end of the file.

It would make more sense to either overwrite the file entirely, prompt the user if it should be replaced during the creation of the new user, or even prompt for the config to be deleted when revoking the user.

Simply deleting the offending config before re-creating the user will resolve this issue.

icoexist avatar Sep 02 '20 08:09 icoexist