Fix: panic for certain no server found errors

This commit is contained in:
Quentin McGaw (desktop)
2021-08-23 21:19:53 +00:00
parent b3d8b78205
commit 0d6800a515
2 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ func NoServerFoundError(selection configuration.ServerSelection) (err error) {
}
messageParts = append(messageParts, "protocol "+protocol)
switch len(selection.Countries) {
switch len(selection.Groups) {
case 0:
case 1:
part := "group " + selection.Groups[0]