chore(storage): remove unneeded VPN default

This commit is contained in:
Quentin McGaw
2022-04-23 10:59:58 +00:00
parent 045ecabb78
commit 1d94f8ab2b
4 changed files with 0 additions and 41 deletions

View File

@@ -2,8 +2,6 @@ package models
import (
"net"
"github.com/qdm12/gluetun/internal/constants/vpn"
)
type Server struct {
@@ -28,11 +26,3 @@ type Server struct {
PortForward bool `json:"port_forward,omitempty"`
IPs []net.IP `json:"ips,omitempty"`
}
func (s *Server) setDefaults() {
// TODO v4 precise these in servers.json rather than here
if s.VPN == "" {
// If the VPN protocol isn't specified, assume it is OpenVPN.
s.VPN = vpn.OpenVPN
}
}