generate interface and peer configuration filenames in backend only (#395)

This commit is contained in:
Christoph
2025-04-19 13:12:31 +02:00
parent a60feb7fc9
commit 6681dfa96f
14 changed files with 91 additions and 20 deletions

View File

@@ -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