#511350 Use $I in pcre for client IP address

Package:
atftpd
Source:
atftp
Description:
advanced TFTP server
Submitter:
Andreas Florath
Date:
2021-12-30 10:36:03 UTC
Severity:
wishlist
Tags:
#511350#5
Date:
2009-01-09 21:39:08 UTC
From:
To:
Hello!

The attached patch adds the possibility of adding the IP address of
the tftp client to the file path on the server side using $I.

With this extension it is possible, that each client sees only it's
own directory and files.  So it is impossible that one client fetches
files that are dedicated to another client.

Example: The line
^(\S+)$                  $I/$0
allows that each client has access to exactly the one well defined
directory (base dir appended with the client's IP address).

Regards

Andreas Florath

#511350#10
Date:
2021-12-30 10:29:01 UTC
From:
To:
Hi Andreas,

it has been a long time since you opened this bug report.  Are you (or
anybody else) still interested in this feature?

In the recent months I've started helping to maintain this package and
contributed a bit to the PCRE2 port. Now, the patch doesn't apply
anymore.  However, if there is interest in this feature, I am happy to
apply (and perhaps help with) an updated patch.

Best regards,

  Andi