wireguird icon indicating copy to clipboard operation
wireguird copied to clipboard

tunnel file name is too long, max length: 15

Open sysdbugfactory opened this issue 9 months ago • 0 comments

after importing wireguard conf file in wireguird, trying to activate it fails with two errors in a row.

first error pretends the file does not exists and is wrong:

Image

second error tells me wireguird has an unexpected limitations of 15 characters for the file name:

Image

renaming the file so the filename length falls below the 15 chars limits, reimporting it and now it works.

this conf file has been generated automatically by my router and imported as is.

I cannot fathom why such a small limit on filename exists or why the length of a filename would prevent connecting to the server.

assuming this limits exist for valid reasons beyond me, why would the import process let me import the conf without complaining ? some check should happen at that point raising an error during importation, or offer to rename the file to a shorter filename.

on the other, it there are no valid reasons for this 15 chars filename limit, maybe consider raising it to a more reasonable value 64 or 256 chars would be better.

sysdbugfactory avatar Mar 31 '25 18:03 sysdbugfactory