File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
packages/compass-connections/src Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1826,13 +1826,13 @@ const connectWithOptions = (
18261826 . isGenuine === false
18271827 ) {
18281828 dispatch ( showNonGenuineMongoDBWarningModal ( connectionInfo . id ) ) ;
1829- } else if ( networkTraffic && showEndOfLifeConnectionModal ) {
1829+ } else if ( showEndOfLifeConnectionModal ) {
18301830 void dataService
18311831 . instance ( )
18321832 . then ( async ( instance ) => {
18331833 const { version } = instance . build ;
18341834 const latestEndOfLifeServerVersion =
1835- await getLatestEndOfLifeServerVersion ( ) ;
1835+ await getLatestEndOfLifeServerVersion ( networkTraffic ) ;
18361836 if ( isEndOfLifeVersion ( version , latestEndOfLifeServerVersion ) ) {
18371837 dispatch (
18381838 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