-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix daita and multihop warning being shown when multihop is disabled #7242
Fix daita and multihop warning being shown when multihop is disabled #7242
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @olmoh)
desktop/packages/mullvad-vpn/src/renderer/components/select-location/SelectLocation.tsx
line 313 at r1 (raw file):
<CustomLists selectedElementRef={selectedLocationRef} onSelect={onSelectEntryRelay} /> <LocationList key={locationType}
If we end up in this branch, locationType will be set to Entry. I think that would mean the LocationList shown here will have the wrong list of relays... We probably want to ensure that locationType is always set to exit when multihop is disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @olmoh)
desktop/packages/mullvad-vpn/src/renderer/components/select-location/SelectLocation.tsx
line 313 at r1 (raw file):
Previously, hulthe (Joakim Hulthe) wrote…
If we end up in this branch, locationType will be set to Entry. I think that would mean the LocationList shown here will have the wrong list of relays... We probably want to ensure that locationType is always set to exit when multihop is disabled.
Hmm. this appears to be a bug that's been around longer than the daita-warning-bug. It's present in 2024.7.
To reproduce:
- Enable multihop
- Click "entry" in location view
- Disable multihop
- Select a new location
d1aaf8a
to
51ae47c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @olmoh)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
e7203d4
to
192df00
Compare
192df00
to
e9c6f50
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
Since the
directOnly
boolean is separate from the multihop setting we need to check the multihop setting as well before disabling the entry selection.This change is