diff --git a/app/ftp.py b/app/connections.py
similarity index 94%
rename from app/ftp.py
rename to app/connections.py
index 68c257cc..8c3cdba0 100644
--- a/app/ftp.py
+++ b/app/connections.py
@@ -193,5 +193,19 @@ def telnet(host, port=23, user="", password="", timeout=5):
yield
+def test_telnet(host, port, user, password, timeout):
+ tn = Telnet(host=host, port=port, timeout=timeout)
+ time.sleep(1)
+ tn.read_until(b"login: ", timeout=2)
+ tn.write(user.encode("utf-8") + b"\n")
+ time.sleep(timeout)
+ tn.read_until(b"Password: ", timeout=2)
+ tn.write(password.encode("utf-8") + b"\n")
+ time.sleep(timeout)
+ yield tn.read_very_eager()
+ tn.close()
+ yield "Done"
+
+
if __name__ == "__main__":
pass
diff --git a/app/ui/download_dialog.py b/app/ui/download_dialog.py
index 20229032..a27f3238 100644
--- a/app/ui/download_dialog.py
+++ b/app/ui/download_dialog.py
@@ -1,7 +1,7 @@
from gi.repository import GLib
from app.commons import run_idle, run_task
-from app.ftp import download_data, DownloadType, upload_data
+from app.connections import download_data, DownloadType, upload_data
from app.properties import Profile
from .uicommons import Gtk, UI_RESOURCES_PATH, TEXT_DOMAIN
from .dialogs import show_dialog, DialogType, get_message
diff --git a/app/ui/new_download_dialog.glade b/app/ui/new_download_dialog.glade
index 2a3df17a..35d0a3ad 100644
--- a/app/ui/new_download_dialog.glade
+++ b/app/ui/new_download_dialog.glade
@@ -33,13 +33,8 @@ Author: Dmitriy Yefremov
-