mobileraker
mobileraker copied to clipboard
Improve Add-Printer URL parsing
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