diff options
| author | Zacchaeus <eikcaz@zacchae.us> | 2025-07-11 19:34:14 -0700 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-08-03 11:07:45 +0200 |
| commit | c40c69766d16925d5ba64c8e5c6ce614825784e4 (patch) | |
| tree | 1b8f49ca7dadea7fce3aeee231232239326a2e64 | |
| parent | 564ba4590596da1e280038e353d953db2ccdda07 (diff) | |
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>
| -rw-r--r-- | doc/guix.texi | 6 | ||||
| -rw-r--r-- | gnu/services/networking.scm | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 63402f83d7a..94bda2cc9d6 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -23201,7 +23201,7 @@ Services of this type can be extended by other services to specify | |||
| 23201 | (simple-service 'my-extra-onion-service tor-service-type | 23201 | (simple-service 'my-extra-onion-service tor-service-type |
| 23202 | (list (tor-onion-service-configuration | 23202 | (list (tor-onion-service-configuration |
| 23203 | (name "extra-onion-service") | 23203 | (name "extra-onion-service") |
| 23204 | (mapping '((80 . "127.0.0.1:8080")))))) | 23204 | (mapping '((80 "127.0.0.1:8080")))))) |
| 23205 | @end lisp | 23205 | @end lisp |
| 23206 | @end defvar | 23206 | @end defvar |
| 23207 | 23207 | ||
| @@ -23275,8 +23275,8 @@ Service. | |||
| 23275 | @item @code{mapping} (type: alist) | 23275 | @item @code{mapping} (type: alist) |
| 23276 | Association list of port to address mappings. The following example: | 23276 | Association list of port to address mappings. The following example: |
| 23277 | @lisp | 23277 | @lisp |
| 23278 | '((22 . "127.0.0.1:22") | 23278 | '((22 "127.0.0.1:22") |
| 23279 | (80 . "127.0.0.1:8080")) | 23279 | (80 "127.0.0.1:8080")) |
| 23280 | @end lisp | 23280 | @end lisp |
| 23281 | maps ports 22 and 80 of the Onion Service to the local ports 22 and 8080. | 23281 | maps ports 22 and 80 of the Onion Service to the local ports 22 and 8080. |
| 23282 | 23282 | ||
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index 6dc4eb2b1b2..c5ebb1b6730 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm | |||
| @@ -1199,8 +1199,8 @@ Onion Service.") | |||
| 1199 | alist | 1199 | alist |
| 1200 | "Association list of port to address mappings. The following example: | 1200 | "Association list of port to address mappings. The following example: |
| 1201 | @lisp | 1201 | @lisp |
| 1202 | '((22 . \"127.0.0.1:22\") | 1202 | '((22 \"127.0.0.1:22\") |
| 1203 | (80 . \"127.0.0.1:8080\")) | 1203 | (80 \"127.0.0.1:8080\")) |
| 1204 | @end lisp | 1204 | @end lisp |
| 1205 | maps ports 22 and 80 of the Onion Service to the local ports 22 and 8080.")) | 1205 | maps ports 22 and 80 of the Onion Service to the local ports 22 and 8080.")) |
| 1206 | 1206 | ||
| @@ -1395,8 +1395,8 @@ networking daemon."))) | |||
| 1395 | @var{mapping}. @var{mapping} is a list of port/host tuples, such as: | 1395 | @var{mapping}. @var{mapping} is a list of port/host tuples, such as: |
| 1396 | 1396 | ||
| 1397 | @example | 1397 | @example |
| 1398 | '((22 . \"127.0.0.1:22\") | 1398 | '((22 \"127.0.0.1:22\") |
| 1399 | (80 . \"127.0.0.1:8080\")) | 1399 | (80 \"127.0.0.1:8080\")) |
| 1400 | @end example | 1400 | @end example |
| 1401 | 1401 | ||
| 1402 | In this example, port 22 of the hidden service is mapped to local port 22, and | 1402 | In this example, port 22 of the hidden service is mapped to local port 22, and |
