mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-05-23 00:15:19 +03:00
fix: handle os.chmod errors (#457)
This commit is contained in:
parent
13a4c05ff5
commit
585b55c2ee
3 changed files with 55 additions and 13 deletions
|
@ -556,3 +556,8 @@ func RandomString(length int) string {
|
|||
}
|
||||
return string(b)
|
||||
}
|
||||
|
||||
func ManagePerms(path string) error {
|
||||
err := os.Chmod(path, 0600)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue