mobileraker icon indicating copy to clipboard operation
mobileraker copied to clipboard

Improve Add-Printer URL parsing

Open Clon1998 opened this issue 3 years ago • 0 comments

Since the current options do not cover all cases of users entering IP+Port+DNS combinations it would be great to ensure all of these work as expected:

  • [x] Full-WS path with port (e.g. ws://192.1.1.1:9000/websocket)
  • [x] Full-WS path no port (e.g. ws://192.1.1.1/websocket)
  • [x] IP/DNS with port for WS(e.g. 192.1.1.1:9000)
  • [x] IP/DNS no port (e.g. 192.1.1.1)
  • [x] IP/DN with http/https prefix no port (e.g. http://192.1.1.1)
  • [x] IP/DN with http/https prefix with WS port (e.g. http://192.1.1.1:9000)

Related #67, #64

Clon1998 avatar Aug 08 '22 13:08 Clon1998