mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-15 07:11:15 +00:00
generate interface and peer configuration filenames in backend only (#395)
This commit is contained in:
@@ -121,8 +121,8 @@ func (i *Interface) CopyCalculatedAttributes(src *Interface) {
|
||||
}
|
||||
|
||||
func (i *Interface) GetConfigFileName() string {
|
||||
filename := internal.TruncateString(string(i.Identifier), 8)
|
||||
filename = allowedFileNameRegex.ReplaceAllString(filename, "")
|
||||
filename := allowedFileNameRegex.ReplaceAllString(string(i.Identifier), "")
|
||||
filename = internal.TruncateString(filename, 16)
|
||||
filename += ".conf"
|
||||
|
||||
return filename
|
||||
|
Reference in New Issue
Block a user