File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
packages/compass-connections/src Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1823,13 +1823,14 @@ const connectWithOptions = (
18231823 . isGenuine === false
18241824 ) {
18251825 dispatch ( showNonGenuineMongoDBWarningModal ( connectionInfo . id ) ) ;
1826- } else if ( preferences . getPreferences ( ) . networkTraffic ) {
1826+ } else {
1827+ const { networkTraffic } = preferences . getPreferences ( ) ;
18271828 void dataService
18281829 . instance ( )
18291830 . then ( async ( instance ) => {
18301831 const { version } = instance . build ;
18311832 const latestEndOfLifeServerVersion =
1832- await getLatestEndOfLifeServerVersion ( ) ;
1833+ await getLatestEndOfLifeServerVersion ( networkTraffic ) ;
18331834 if ( isEndOfLifeVersion ( version , latestEndOfLifeServerVersion ) ) {
18341835 dispatch (
18351836 showEndOfLifeMongoDBWarningModal (
Original file line number Diff line number Diff line change @@ -13,7 +13,13 @@ const {
1313
1414let latestEndOfLifeServerVersion : Promise < string > | null = null ;
1515
16- export async function getLatestEndOfLifeServerVersion ( ) : Promise < string > {
16+ export async function getLatestEndOfLifeServerVersion (
17+ allowNetworkRequests = true
18+ ) : Promise < string > {
19+ if ( ! allowNetworkRequests ) {
20+ return FALLBACK_END_OF_LIFE_SERVER_VERSION ;
21+ }
22+
1723 if ( ! HADRON_AUTO_UPDATE_ENDPOINT ) {
1824 log . debug (
1925 mongoLogId ( 1_001_000_356 ) ,
You can’t perform that action at this time.
0 commit comments