Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Maslakov committed Nov 20, 2015
1 parent 60b7c86 commit b79974c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenVpnManagement/Manager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ public enum Signal {
// add its path the ovpn file and write it back to the ovpn file
var idx = Array.FindIndex(ovpnFileContent, x => x.StartsWith("auth-user-pass"));
ovpnFileContent[idx] = string.Format("auth-user-pass {0}", passFileName);
File.WriteAllLines(ovpnFileName, ovpnFileContent);
} else {
if (userName != null || password != null) {
throw new ArgumentException("Username or password are provided but the *.ovpn file doesn't have the line 'auth-user-pass'");
}
}

File.WriteAllLines(ovpnFileName, ovpnFileContent);
RunOpenVpnProcess();
}

Expand Down

0 comments on commit b79974c

Please sign in to comment.