summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-08-11 23:26:36 +0200
committerYves Fischer <yvesf-git@xapek.org>2014-08-11 23:26:36 +0200
commit5d8801d4687035ae45143f0f3bc3eeaf75dc17ec (patch)
treebf4395fd5938eb1865ba90b6e52e169d727d9404 /src
parent1251ce0d7cf2619f9b41637dcb88bebb66e54fb3 (diff)
downloadandiodine-5d8801d4687035ae45143f0f3bc3eeaf75dc17ec.tar.gz
andiodine-5d8801d4687035ae45143f0f3bc3eeaf75dc17ec.zip
Upgrade code to iodine 0.7.0 and improve logging
Diffstat (limited to 'src')
-rw-r--r--src/org/xapek/andiodine/IodineClient.java1
-rw-r--r--src/org/xapek/andiodine/IodineVpnService.java4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/org/xapek/andiodine/IodineClient.java b/src/org/xapek/andiodine/IodineClient.java
index e9383ec..37178b5 100644
--- a/src/org/xapek/andiodine/IodineClient.java
+++ b/src/org/xapek/andiodine/IodineClient.java
@@ -35,7 +35,6 @@ public class IodineClient {
@SuppressWarnings("UnusedDeclaration")
public static void log_callback(String message) {
- Log.d(TAG, "Message: " + message);
Intent intent = new Intent(ACTION_LOG_MESSAGE);
intent.putExtra(EXTRA_MESSAGE, message);
diff --git a/src/org/xapek/andiodine/IodineVpnService.java b/src/org/xapek/andiodine/IodineVpnService.java
index f816aaa..971b757 100644
--- a/src/org/xapek/andiodine/IodineVpnService.java
+++ b/src/org/xapek/andiodine/IodineVpnService.java
@@ -311,7 +311,9 @@ public class IodineVpnService extends VpnService implements Runnable {
Log.d(TAG, "Set default route");
b.addRoute("0.0.0.0", 0); // Default Route
}
- b.setMtu(mtu);
+ b.setMtu(mtu); // bug https://github.com/yvesf/andiodine/issues/4
+ // the VPN framework fails if mtu < 1280
+ // b.setMtu(1280);
Log.d(TAG, "Build tunnel interface");
ParcelFileDescriptor parcelFD = b.establish();