chore(storage): runtime defaults on servers data

- `openvpn` default VPN protocol for servers
- True UDP if VPN protocol is Wireguard
This commit is contained in:
Quentin McGaw
2022-04-18 11:59:15 +00:00
parent 934fafb64b
commit ac9571c6b2
4 changed files with 45 additions and 0 deletions

View File

@@ -204,6 +204,7 @@ func (s *Storage) extractServersFromBytes(b []byte, hardcoded models.AllServers)
if err != nil {
return servers, err
}
element.target.SetDefaults()
}
return servers, nil