-
Notifications
You must be signed in to change notification settings - Fork 360
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
Remove by custom DNS by index #6308
Remove by custom DNS by index #6308
Conversation
5ee522c
to
b1c5763
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 5 of 5 files at r1, 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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Rawa)
android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt
line 351 at r1 (raw file):
val updatedDnsOptions = DnsOptions.customOptions.addresses.modify(currentDnsOptions) { it.filterIndexed { i, _ -> i != index }
Just a thought, would it be more clear to show what we are doing by doing something like:
it.toMutableList().apply { removeAt(1) }
?
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: all files reviewed, 1 unresolved discussion (waiting on @Rawa)
android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt
line 351 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
Just a thought, would it be more clear to show what we are doing by doing something like:
it.toMutableList().apply { removeAt(1) }
?
Should be removeAt(index)
b1c5763
to
2001e35
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.
Reviewable status: 4 of 5 files reviewed, all discussions resolved (waiting on @Pururun)
android/lib/daemon-grpc/src/main/kotlin/net/mullvad/mullvadvpn/lib/daemon/grpc/ManagementService.kt
line 351 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
Should be
removeAt(index)
Thanks, clarified.
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 r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
2001e35
to
f11d057
Compare
Fixes bug where one would remove based on the current text entry instead of the index.
This change is