summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2018-08-06 17:26:31 +0000
committermestre <mestre@openbsd.org>2018-08-06 17:26:31 +0000
commitfcd3a45bdd4461967edac0c1e2e3d5424a5b7153 (patch)
treeacde6f7ecb8e871049bf1aaef26d4acac49e2aa5
parentChange manpage example for reserved words since the macro used is to replace (diff)
downloadwireguard-openbsd-fcd3a45bdd4461967edac0c1e2e3d5424a5b7153.tar.xz
wireguard-openbsd-fcd3a45bdd4461967edac0c1e2e3d5424a5b7153.zip
Correct example file since reserved words cannot be used as macros. Not only
that, the macro used was password and if we changed it to something like pass="secret" it would log it if the daemon was ran in verbose mode. Hint and OK claudio@
-rw-r--r--etc/examples/ldpd.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/examples/ldpd.conf b/etc/examples/ldpd.conf
index b08b4f7eace..8616e467c1a 100644
--- a/etc/examples/ldpd.conf
+++ b/etc/examples/ldpd.conf
@@ -1,7 +1,7 @@
-# $OpenBSD: ldpd.conf,v 1.2 2016/06/05 03:29:33 renato Exp $
+# $OpenBSD: ldpd.conf,v 1.3 2018/08/06 17:26:31 mestre Exp $
# macros
-password="secret"
+peer1="192.168.1.10"
# global configuration
# router-id 10.0.0.1
@@ -22,8 +22,8 @@ address-family ipv4 {
targeted-neighbor 172.16.1.10
}
-neighbor 192.168.1.10 {
- password $password
+neighbor $peer1 {
+ password "secret"
}
l2vpn CUST_A type vpls {