Mullvad servers do not have a default port

- Refers to #218
- Checks for custom port value depending on protocol
- Remove default port from server constants
- Use 443 and 1194 ports respectively for tcp and udp
This commit is contained in:
Quentin McGaw
2020-08-24 01:53:24 +00:00
parent 7e3e6f166a
commit 6fc2b3dd21
5 changed files with 375 additions and 440 deletions

View File

@@ -8,12 +8,11 @@ type PIAServer struct {
}
type MullvadServer struct {
IPs []net.IP
Country string
City string
ISP string
Owned bool
DefaultPort uint16
IPs []net.IP
Country string
City string
ISP string
Owned bool
}
type WindscribeServer struct {