-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ACL checking may requires lots of calculation and network I/O (DNS resolution)
- Loading branch information
Showing
4 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101a6f2
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.
can be used for ss-android?
101a6f2
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.
Yes of course.
Compiliation issue is caused by libstd's version. It can only be compiled with rustc >= 1.46.0.
101a6f2
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.
I was sad, when I compile the ss-android, I got a compilation issue.
error[E0599]: no method named
get
found for opaque typeimpl core::future::future::Future
in the current scope--> src/context.rs:457:61
|
457 | if let Some(forward) = reverse_lookup_cache.get(&saddr.ip()) {
| ^^^ method not found in
impl core::future::future::Future
error: aborting due to previous error
please tell me, how can i fixed it?
P.S. rustc 1.46.0-nightly (feb3536eb 2020-06-09)
101a6f2
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.
Please try with the latest commit. Compile it with feature
acl-check-cache
101a6f2
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.
Isn't latest stable release only 1.44.0? This means that it has to be compiled on nightly? That doesn't sound like a good thing.
101a6f2
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.
@Mygod Yes. That's why I add a feature gate
acl-check-cache
.101a6f2
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.
My fault, it seems that it will be released in 1.45: rust-lang/rust#72239