diff options
-rw-r--r-- | AndroidManifest.xml | 2 | ||||
-rw-r--r-- | src/org/connectbot/transport/SSH.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 07eca89..8a658ad 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,7 +2,7 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.connectbot" android:versionName="1.7-dev" - android:versionCode="248"> + android:versionCode="249"> <application android:icon="@drawable/icon" diff --git a/src/org/connectbot/transport/SSH.java b/src/org/connectbot/transport/SSH.java index cc2af9b..b94af63 100644 --- a/src/org/connectbot/transport/SSH.java +++ b/src/org/connectbot/transport/SSH.java @@ -611,7 +611,7 @@ public class SSH extends AbsTransport implements ConnectionMonitor, InteractiveC lpf = connection.createLocalPortForwarder( new InetSocketAddress(InetAddress.getLocalHost(), portForward.getSourcePort()), portForward.getDestAddr(), portForward.getDestPort()); - } catch (IOException e) { + } catch (Exception e) { Log.e(TAG, "Could not create local port forward", e); return false; } @@ -627,7 +627,7 @@ public class SSH extends AbsTransport implements ConnectionMonitor, InteractiveC } else if (HostDatabase.PORTFORWARD_REMOTE.equals(portForward.getType())) { try { connection.requestRemotePortForwarding("", portForward.getSourcePort(), portForward.getDestAddr(), portForward.getDestPort()); - } catch (IOException e) { + } catch (Exception e) { Log.e(TAG, "Could not create remote port forward", e); return false; } @@ -640,7 +640,7 @@ public class SSH extends AbsTransport implements ConnectionMonitor, InteractiveC try { dpf = connection.createDynamicPortForwarder( new InetSocketAddress(InetAddress.getLocalHost(), portForward.getSourcePort())); - } catch (IOException e) { + } catch (Exception e) { Log.e(TAG, "Could not create dynamic port forward", e); return false; } |