Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
openvpn: subnet topology is only valid in TLS - TUN mode (fixes Stati…
Browse files Browse the repository at this point in the history
…c key auth)
  • Loading branch information
RMerl committed Oct 30, 2015
1 parent 7cc9d54 commit cc74990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/src/router/rc/openvpn.c
Expand Up @@ -744,7 +744,6 @@ void start_vpnserver(int serverNum)
chmod(&buffer[0], S_IRUSR|S_IWUSR);
fprintf(fp, "# Automatically generated configuration\n");
fprintf(fp, "daemon\n");
fprintf(fp, "topology subnet\n");

sprintf(&buffer[0], "/etc/openvpn/server%d/client.ovpn", serverNum);
fp_client = fopen(&buffer[0], "w");
Expand All @@ -754,6 +753,7 @@ void start_vpnserver(int serverNum)
{
if ( ifType == TUN )
{
fprintf(fp, "topology subnet\n");
sprintf(&buffer[0], "vpn_server%d_sn", serverNum);
fprintf(fp, "server %s ", nvram_safe_get(&buffer[0]));
sprintf(&buffer[0], "vpn_server%d_nm", serverNum);
Expand Down

0 comments on commit cc74990

Please sign in to comment.