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 84c44c1..a6b9fc5 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