Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Unified Diff: l2tpipsec_vpn.cc

Issue 6731015: vpn-manager: accept a hostname for remote host (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vpn-manager.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ipsec_manager.cc ('K') | « l2tp_manager_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: l2tpipsec_vpn.cc
diff --git a/l2tpipsec_vpn.cc b/l2tpipsec_vpn.cc
index 24a57a7415ad7caa01f7c1c94e7a9d13e74ab24c..d9264dcec233f7a63d957617d04b04c689743712 100644
--- a/l2tpipsec_vpn.cc
+++ b/l2tpipsec_vpn.cc
@@ -22,7 +22,7 @@
DEFINE_string(client_cert_file, "", "File with IPsec client certificate");
DEFINE_string(client_key_file, "", "File with IPsec client private key");
DEFINE_string(psk_file, "", "File with IPsec pre-shared key");
-DEFINE_string(remote_address, "", "VPN server address");
+DEFINE_string(remote_host, "", "VPN server hostname");
DEFINE_string(server_ca_file, "", "File with IPsec server CA");
#pragma GCC diagnostic error "-Wstrict-aliasing"
@@ -111,14 +111,14 @@ int main(int argc, char* argv[]) {
ServiceManager::InitializeDirectories(&temp_dir);
if (!ipsec.Initialize(1,
- FLAGS_remote_address,
+ FLAGS_remote_host,
FLAGS_psk_file,
FLAGS_server_ca_file,
FLAGS_client_key_file,
FLAGS_client_cert_file)) {
return 1;
}
- if (!l2tp.Initialize(FLAGS_remote_address)) {
+ if (!l2tp.Initialize(FLAGS_remote_host)) {
return 1;
}
ServiceManager::SetLayerOrder(&ipsec, &l2tp);
« ipsec_manager.cc ('K') | « l2tp_manager_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698