Skip to content

Update cfb-mode and aes to version 0.8.x#21

Merged
cfal merged 5 commits intocfal:masterfrom
18o:cfb
Sep 16, 2024
Merged

Update cfb-mode and aes to version 0.8.x#21
cfal merged 5 commits intocfal:masterfrom
18o:cfb

Conversation

@18o
Copy link
Copy Markdown
Contributor

@18o 18o commented Aug 30, 2024

resolved #4

Copy link
Copy Markdown
Owner

@cfal cfal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your contribution 🙏 have you tested that vmess still works as expected?

}
Poll::Ready(result) => {
let _ = this.resolving_locations.remove(target).unwrap();
this.resolving_locations.remove(target);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was intentional because it's an error that should never occur - could we leave it or replace with an expect?

Copy link
Copy Markdown
Contributor Author

@18o 18o Sep 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the returned value never used, why we need call unwrap() or expect()?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unwrap shows that a value exists, and panics otherwise. if we don't unwrap or expect, and a bug is introduced in the code where the target key is empty, this would not panic.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok new update has pushed

@18o
Copy link
Copy Markdown
Contributor Author

18o commented Sep 5, 2024

yeah, i use shoes for my own instead v2flay for a long time.
everything working well after these changes.

Copy link
Copy Markdown
Owner

@cfal cfal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@cfal cfal merged commit 663e405 into cfal:master Sep 16, 2024
@18o 18o deleted the cfb branch September 16, 2024 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update cfb-mode

2 participants