mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
services: vpn: Fix default tls-auth configuration.
* gnu/services/vpn.scm (serialize-tls-auth): Fix serialization error when tls-auth is disabled.
This commit is contained in:
parent
262a4d335a
commit
4b8b4418e6
1 changed files with 6 additions and 4 deletions
|
@ -108,10 +108,12 @@ (define (serialize-resolv-retry field-name value)
|
|||
#f))
|
||||
|
||||
(define (serialize-tls-auth role location)
|
||||
(serialize-field 'tls-auth
|
||||
(string-append location " " (match role
|
||||
('server "0")
|
||||
('client "1")))))
|
||||
(if location
|
||||
(serialize-field 'tls-auth
|
||||
(string-append location " " (match role
|
||||
('server "0")
|
||||
('client "1"))))
|
||||
#f))
|
||||
(define (tls-auth? val)
|
||||
(or (eq? val #f)
|
||||
(string? val)))
|
||||
|
|
Loading…
Reference in a new issue