Skip to content

tunnel file name is too long, max length: 15 #65

@sysdbugfactory

Description

@sysdbugfactory

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions