Subject: Re: [bug#50808] [PATCH] services: rsync: support binding rsync to a specific IP address

From: Oleg Pykhalov <[email-masked]>
Date: Sun, 26 Sep 2021 18:24:46 +0300

Hi Jacob,

Nice catch, I would like to have this configurable, too.

Jacob Adams <[email-masked]> writes:

[…]

> +  (address       rsync-configuration-address              ; string
> +                 (default ""))

We could just use ‘#f’ here with ‘string | #f’ comment.

[…]

> +      (if (not (string=? address "")) (string-append "address = " address "\n") "")
>        "port = " (number->string port-number) "\n"
>        "use chroot = " (if use-chroot? "true" "false") "\n"
>        (if uid (string-append "uid = " uid "\n") "")

And here we could just ‘(if address (string-append ...) "")’.

Could you send an updated patch, please?

Thanks,
Oleg.