android: Apply configured server port
[strongswan.git] / src / frontends / android / src / org / strongswan / android / logic / CharonVpnService.java
index ffe1449..236e759 100644 (file)
@@ -222,6 +222,7 @@ public class CharonVpnService extends VpnService implements Runnable
                                                        writer.setValue("global.mtu", mCurrentProfile.getMTU());
                                                        writer.setValue("connection.type", mCurrentProfile.getVpnType().getIdentifier());
                                                        writer.setValue("connection.server", mCurrentProfile.getGateway());
                                                        writer.setValue("global.mtu", mCurrentProfile.getMTU());
                                                        writer.setValue("connection.type", mCurrentProfile.getVpnType().getIdentifier());
                                                        writer.setValue("connection.server", mCurrentProfile.getGateway());
+                                                       writer.setValue("connection.port", mCurrentProfile.getPort());
                                                        writer.setValue("connection.username", mCurrentProfile.getUsername());
                                                        writer.setValue("connection.password", mCurrentProfile.getPassword());
                                                        initiate(writer.serialize());
                                                        writer.setValue("connection.username", mCurrentProfile.getUsername());
                                                        writer.setValue("connection.password", mCurrentProfile.getPassword());
                                                        initiate(writer.serialize());