Commits

ant...@3bb7dfac-3a0b-4e04-842a-767bc560f471  committed 8c7424b

#303 better error message for invalid tcp connection strings

  • Participants
  • Parent commits 20f4e4b

Comments (0)

Files changed (1)

File 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)