Skip to content

Entering domain without scheme prefix crashes the app #4

@ebariaux

Description

@ebariaux

Starting with a fresh app, the "enter domain" screen is displayed.
Enter a string with an IP and port but no scheme e.g. "192.168.1.1:8080".
App crashes with a forced unwrap (building a URL from that string fails).

Add unit tests to prove the crash.
Fix the code to use https:// as default scheme is none is present.

Metadata

Metadata

Labels

BugError or issue in the system

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions