Fix & feat: Cyberghost server groups
- Allow multiple comma separated values for CYBERGHOST_GROUP - Defaults to all UDP groups - If TCP is enabled, defaults to all TCP groups - Check groups specified match the protocol - Default Cyberghost group to empty - Adjust formatting and messages
This commit is contained in:
@@ -25,8 +25,13 @@ func NoServerFoundError(selection configuration.ServerSelection) (err error) {
|
||||
}
|
||||
messageParts = append(messageParts, "protocol "+protocol)
|
||||
|
||||
if selection.Group != "" {
|
||||
part := "group " + selection.Group
|
||||
switch len(selection.Countries) {
|
||||
case 0:
|
||||
case 1:
|
||||
part := "group " + selection.Groups[0]
|
||||
messageParts = append(messageParts, part)
|
||||
default:
|
||||
part := "groups " + commaJoin(selection.Groups)
|
||||
messageParts = append(messageParts, part)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user