git: f7bfe310191c - main - wg(4): Fix an example in the manual page

Gordon Bergling gbe at FreeBSD.org
Sun Mar 7 19:30:34 UTC 2021


The branch main has been updated by gbe (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=f7bfe310191c8292da51c8da166a521ff16e0e46

commit f7bfe310191c8292da51c8da166a521ff16e0e46
Author:     Gordon Bergling <gbe at FreeBSD.org>
AuthorDate: 2021-03-07 19:27:59 +0000
Commit:     Gordon Bergling <gbe at FreeBSD.org>
CommitDate: 2021-03-07 19:27:59 +0000

    wg(4): Fix an example in the manual page
    
    The example in the manual page of wg(4) for connecting to a
    peer was missing the 'public-key' ifconfig(8) keyword and for the
    addressed peer the port must be specified.
    
    PR:     253866
    Reported by:    Sergey Akhmatov <sergey at akhmatov dot ru>
    Reviewed by:    debdrup
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D29115
---
 share/man/man4/wg.4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/man/man4/wg.4 b/share/man/man4/wg.4
index 2a13b98f45e9..760584e3a386 100644
--- a/share/man/man4/wg.4
+++ b/share/man/man4/wg.4
@@ -23,7 +23,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd February 2, 2021
+.Dd March 7, 2021
 .Dt WG 4
 .Os
 .Sh NAME
@@ -184,7 +184,7 @@ $ ifconfig wg0 | awk '/public-key/ { print $2 }'`
 .Pp
 Connect to a specific endpoint using its public-key and set the allowed IP address
 .Bd -literal -offset indent
-# ifconfig wg0 peer '7lWtsDdqaGB3EY9WNxRN3hVaHMtu1zXw71+bOjNOVUw=' endpoint 10.0.1.100 allowed-ips 192.168.2.100/32
+# ifconfig wg0 peer public-key '7lWtsDdqaGB3EY9WNxRN3hVaHMtu1zXw71+bOjNOVUw=' endpoint 10.0.1.100:54321 allowed-ips 192.168.2.100/32
 .Ed
 .Sh DIAGNOSTICS
 The


More information about the dev-commits-src-all mailing list