Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/RMerl/asuswrt-merlin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sauvageau <rmerl@lostrealm.ca>2016-12-16 07:30:08 +0300
committerEric Sauvageau <rmerl@lostrealm.ca>2016-12-16 07:30:08 +0300
commitdbc58e15d0aa3049a93a15a07ea9f3ff859c48f2 (patch)
tree2c400c14b9a74380616bf29efa7195bc398b7953
parent32b45b1e022e05194070e9c3fb62d8a3786f3dab (diff)
httpd: fix importing of ovpn file when using tls authentication - incorrect nvram set for hmac direction (backport for GPL 4164)
-rw-r--r--release/src/router/httpd/openvpn_options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/src/router/httpd/openvpn_options.c b/release/src/router/httpd/openvpn_options.c
index 243f2defd7..28ba3f694d 100644
--- a/release/src/router/httpd/openvpn_options.c
+++ b/release/src/router/httpd/openvpn_options.c
@@ -533,7 +533,7 @@ add_option (char *p[], int line, int unit)
#endif
write_encoded_crt(buf, data);
//key-direction
- sprintf(buf, "vpn_crt_client%d_hmac", unit);
+ sprintf(buf, "vpn_client%d_hmac", unit);
if(nvram_match(buf, "-1")) //default, disable
nvram_set(buf, "2"); //openvpn default value: KEY_DIRECTION_BIDIRECTIONAL
}