Feature: filter by hostname for Cyberghost servers

This commit is contained in:
Quentin McGaw
2021-05-08 19:05:11 +00:00
parent c0e4d805b1
commit a34769ae02
9 changed files with 182 additions and 121 deletions

View File

@@ -8,13 +8,15 @@ import (
)
type CyberghostServer struct {
Region string `json:"region"`
Group string `json:"group"`
IPs []net.IP `json:"ips"`
Region string `json:"region"`
Group string `json:"group"`
Hostname string `json:"hostname"`
IPs []net.IP `json:"ips"`
}
func (s *CyberghostServer) String() string {
return fmt.Sprintf("{Region: %q, Group: %q, IPs: %s}", s.Region, s.Group, goStringifyIPs(s.IPs))
return fmt.Sprintf("{Region: %q, Group: %q, Hostname: %q, IPs: %s}",
s.Region, s.Group, s.Hostname, goStringifyIPs(s.IPs))
}
type FastestvpnServer struct {