mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
services: lsh: Correctly handle #:interfaces option.
* gnu/services/ssh.scm (lsh-dmd-service)[lsh-command]: Pass a series of --interface flags instead of the nonexistent --interfaces option.
This commit is contained in:
parent
4331f558d7
commit
fde40c98f9
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@ (define-module (gnu services ssh)
|
||||||
#:use-module (gnu services dmd)
|
#:use-module (gnu services dmd)
|
||||||
#:use-module (gnu system pam)
|
#:use-module (gnu system pam)
|
||||||
#:use-module (gnu packages lsh)
|
#:use-module (gnu packages lsh)
|
||||||
|
#:use-module (srfi srfi-26)
|
||||||
#:export (lsh-service))
|
#:export (lsh-service))
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
@ -142,8 +143,8 @@ (define lsh-command
|
||||||
"--tcpip-forward" "--no-tcpip-forward")
|
"--tcpip-forward" "--no-tcpip-forward")
|
||||||
(if (null? interfaces)
|
(if (null? interfaces)
|
||||||
'()
|
'()
|
||||||
(list (string-append "--interfaces="
|
(map (cut string-append "--interface=" <>)
|
||||||
(string-join interfaces ",")))))))
|
interfaces)))))
|
||||||
|
|
||||||
(define requires
|
(define requires
|
||||||
(if (and daemonic? (lsh-configuration-syslog-output? config))
|
(if (and daemonic? (lsh-configuration-syslog-output? config))
|
||||||
|
|
Loading…
Reference in a new issue