From 5d8801d4687035ae45143f0f3bc3eeaf75dc17ec Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 11 Aug 2014 23:26:36 +0200 Subject: Upgrade code to iodine 0.7.0 and improve logging --- src/org/xapek/andiodine/IodineClient.java | 1 - src/org/xapek/andiodine/IodineVpnService.java | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/org/xapek') 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(); -- cgit v1.2.1