]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
android: Pass local and remote identities as settings of a connection
authorTobias Brunner <tobias@strongswan.org>
Fri, 29 Apr 2016 10:34:59 +0000 (12:34 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 2 May 2016 16:38:15 +0000 (18:38 +0200)
src/frontends/android/app/src/main/java/org/strongswan/android/logic/CharonVpnService.java

index 84c44c1237855deb2cb303ca6a82a7aada300497..a6b9fc52dcecde9af39fb5c7634a211dd815e9a9 100644 (file)
@@ -1,8 +1,8 @@
 /*
- * Copyright (C) 2012-2015 Tobias Brunner
+ * Copyright (C) 2012-2016 Tobias Brunner
  * Copyright (C) 2012 Giuliano Grassi
  * Copyright (C) 2012 Ralf Sager
- * Hochschule fuer Technik Rapperswil
+ * HSR Hochschule fuer Technik Rapperswil
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License as published by the
@@ -232,6 +232,8 @@ public class CharonVpnService extends VpnService implements Runnable
                                                        writer.setValue("connection.port", mCurrentProfile.getPort());
                                                        writer.setValue("connection.username", mCurrentProfile.getUsername());
                                                        writer.setValue("connection.password", mCurrentProfile.getPassword());
+                                                       writer.setValue("connection.local_id", mCurrentProfile.getLocalId());
+                                                       writer.setValue("connection.remote_id", mCurrentProfile.getRemoteId());
                                                        initiate(writer.serialize());
                                                }
                                                else