feat(vpn): rotate filtered servers on internal vpn restarts

- Fix #290
This commit is contained in:
Quentin McGaw
2026-05-04 03:28:48 +00:00
parent 4b819b4dbb
commit fed09562e5
57 changed files with 345 additions and 220 deletions
+2 -1
View File
@@ -183,6 +183,7 @@ func Test_GetConnection(t *testing.T) {
t.Run(name, func(t *testing.T) {
t.Parallel()
ctrl := gomock.NewController(t)
connPicker := NewConnectionPicker()
storage := common.NewMockStorage(ctrl)
storage.EXPECT().
@@ -191,7 +192,7 @@ func Test_GetConnection(t *testing.T) {
connection, err := GetConnection(testCase.provider, storage,
testCase.serverSelection, testCase.defaults, testCase.ipv6Supported,
testCase.randSource)
connPicker)
assert.Equal(t, testCase.connection, connection)
if testCase.errMessage != "" {