Opened 2 years ago

Last modified 2 years ago

#9661 enhancement new

It should be possible to specify base path for serverFromString/clientFromString descriptions that include paths

Reported by: Wim Lewis Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author:

Description (last modified by Wim Lewis)

Some strports-ish descriptions include paths, such as the key/cert parameters to tls ports. If these descriptions occur in a configuration file, it can be rather unclear to the maintainer of the configuration file what directory they're relative to, but making the paths absolute can also be extra work to maintain.

One solution would be to allow the base directory to be passed to the functions which take strports strings.

Another solution would be to provide a function which converts relative strports strings to absolute strports strings. This would often be more useful, because strings could be made absolute at the point of ingestion, when the proper context is known.

(Ideally, either API would also allow a special value like None to forbid relative paths)

Change History (1)

comment:1 Changed 2 years ago by Wim Lewis

Description: modified (diff)
Summary: It should be possible to specify base path for strports descriptions that include pathsIt should be possible to specify base path for serverFromString/clientFromString descriptions that include paths
Note: See TracTickets for help on using tickets.