mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
doc: Correct tor-onion-service-configuration mapping documentation.
* doc/guix.texi (Networking Services): Fix tor-onion-service-configuration
description which was broken in commit 9be1ee6a49
when documentation was
changed to indicated that port-location mappings should be provided as cons
cells when the code always expected lists
Change-Id: Ib12d273cbd37976f9507a60a6d088078f71d4e7a
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
This commit is contained in:
parent
564ba45905
commit
c40c69766d
2 changed files with 7 additions and 7 deletions
|
@ -23201,7 +23201,7 @@ Services of this type can be extended by other services to specify
|
||||||
(simple-service 'my-extra-onion-service tor-service-type
|
(simple-service 'my-extra-onion-service tor-service-type
|
||||||
(list (tor-onion-service-configuration
|
(list (tor-onion-service-configuration
|
||||||
(name "extra-onion-service")
|
(name "extra-onion-service")
|
||||||
(mapping '((80 . "127.0.0.1:8080"))))))
|
(mapping '((80 "127.0.0.1:8080"))))))
|
||||||
@end lisp
|
@end lisp
|
||||||
@end defvar
|
@end defvar
|
||||||
|
|
||||||
|
@ -23275,8 +23275,8 @@ Service.
|
||||||
@item @code{mapping} (type: alist)
|
@item @code{mapping} (type: alist)
|
||||||
Association list of port to address mappings. The following example:
|
Association list of port to address mappings. The following example:
|
||||||
@lisp
|
@lisp
|
||||||
'((22 . "127.0.0.1:22")
|
'((22 "127.0.0.1:22")
|
||||||
(80 . "127.0.0.1:8080"))
|
(80 "127.0.0.1:8080"))
|
||||||
@end lisp
|
@end lisp
|
||||||
maps ports 22 and 80 of the Onion Service to the local ports 22 and 8080.
|
maps ports 22 and 80 of the Onion Service to the local ports 22 and 8080.
|
||||||
|
|
||||||
|
|
|
@ -1199,8 +1199,8 @@ Onion Service.")
|
||||||
alist
|
alist
|
||||||
"Association list of port to address mappings. The following example:
|
"Association list of port to address mappings. The following example:
|
||||||
@lisp
|
@lisp
|
||||||
'((22 . \"127.0.0.1:22\")
|
'((22 \"127.0.0.1:22\")
|
||||||
(80 . \"127.0.0.1:8080\"))
|
(80 \"127.0.0.1:8080\"))
|
||||||
@end lisp
|
@end lisp
|
||||||
maps ports 22 and 80 of the Onion Service to the local ports 22 and 8080."))
|
maps ports 22 and 80 of the Onion Service to the local ports 22 and 8080."))
|
||||||
|
|
||||||
|
@ -1395,8 +1395,8 @@ networking daemon.")))
|
||||||
@var{mapping}. @var{mapping} is a list of port/host tuples, such as:
|
@var{mapping}. @var{mapping} is a list of port/host tuples, such as:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
'((22 . \"127.0.0.1:22\")
|
'((22 \"127.0.0.1:22\")
|
||||||
(80 . \"127.0.0.1:8080\"))
|
(80 \"127.0.0.1:8080\"))
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
In this example, port 22 of the hidden service is mapped to local port 22, and
|
In this example, port 22 of the hidden service is mapped to local port 22, and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue