chore(pia): add test to ensure default ports are within ports from their API

This commit is contained in:
Quentin McGaw
2025-12-22 23:24:13 +00:00
parent fd6e5e4e90
commit cc89b35b63
2 changed files with 65 additions and 1 deletions
@@ -9,7 +9,11 @@ import (
func (p *Provider) GetConnection(selection settings.ServerSelection, ipv6Supported bool) (
connection models.Connection, err error,
) {
defaults := utils.NewConnectionDefaults(8443, 8080, 0) //nolint:mnd
defaults := getConnectionDefaults()
return utils.GetConnection(p.Name(),
p.storage, selection, defaults, ipv6Supported, p.randSource)
}
func getConnectionDefaults() utils.ConnectionDefaults {
return utils.NewConnectionDefaults(8443, 8080, 0) //nolint:mnd
}