mirror of
https://github.com/moparisthebest/SSLDroid
synced 2024-11-27 03:12:18 -05:00
Fixed too strict unicity check in tunnel details dialog
Signed-off-by: Balint Kovacs <blint@blint.hu>
This commit is contained in:
parent
aad79a8e5a
commit
c3add3dbf8
@ -108,7 +108,7 @@ public class SSLDroidTunnelDetails extends Activity {
|
||||
while (cursor.moveToNext()) {
|
||||
String cDbName = cursor.getString(cursor.getColumnIndexOrThrow(SSLDroidDbAdapter.KEY_NAME));
|
||||
int cDbPort = cursor.getInt(cursor.getColumnIndexOrThrow(SSLDroidDbAdapter.KEY_LOCALPORT));
|
||||
if (cPort == cDbPort) {
|
||||
if (cPort == cDbPort && !cDbName.contentEquals(name.getText().toString())) {
|
||||
Toast.makeText(getBaseContext(), "Local port already configured in tunnel '"+cDbName+"', please change...", Toast.LENGTH_LONG).show();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user