Commits

Anonymous committed 8c7424b

#303 better error message for invalid tcp connection strings

Comments (0)

Files changed (1)

src/xpra/scripts/main.py

         desc["type"] = "tcp"
         desc["local"] = False
         parts = display_name.split(separator)
+        if len(parts)!=3:
+            error_cb("invalid tcp connection string, use tcp/HOST/PORT or tcp:host:port")
         port = int(parts[-1])
         if port<=0 or port>=65536:
             error_cb("invalid port number: %s" % port)