[Openvpn-devel,v2] show the right string for key-direction

Message ID 1517392162-21501-1-git-send-email-arne@rfc2549.org
State Superseded
Headers show
Series [Openvpn-devel,v2] show the right string for key-direction | expand

Commit Message

Arne Schwabe Jan. 30, 2018, 10:49 p.m. UTC
V2: print also a nice string if direction is not set
---
 src/openvpn/options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 66e1f9d1..f405d8a2 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -1706,7 +1706,7 @@  show_settings(const struct options *o)
 #endif
 
     SHOW_STR(shared_secret_file);
-    SHOW_INT(key_direction);
+    SHOW_PARM(key_direction, keydirection2ascii(o->key_direction, false), "%s");
     SHOW_STR(ciphername);
     SHOW_BOOL(ncp_enabled);
     SHOW_STR(ncp_ciphers);