-
Notifications
You must be signed in to change notification settings - Fork 234
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
Create IpPacketRouter #4068
Create IpPacketRouter #4068
Conversation
@@ -123,7 +123,7 @@ impl TunDevice { | |||
|
|||
// This is how wireguard does it, by consulting the AllowedIPs table. | |||
if false { | |||
let peers = self.peers_by_ip.lock().await; | |||
let peers = self.peers_by_ip.as_ref().unwrap().lock().await; |
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.
if you're just always unwrapping it, what's the point of wrapping it in an option in the first place?
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.
Well this is draft so ... ;)
Hold your horses
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.
🛑 🏇🏻
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.
There we go, no more unwrap :)
6daca7f
to
49cf33f
Compare
a955ef8
to
f39ffc7
Compare
0490762
to
6052a9e
Compare
c8d7705
to
756aca3
Compare
Description
Create IpPacketRouter