mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 17:14:06 +02:00
use landlock to further lock down proxy process
This commit is contained in:
parent
d48f61b4fa
commit
63a800e20f
4 changed files with 82 additions and 21 deletions
|
|
@ -10,6 +10,12 @@ pub struct ForwardTarget {
|
|||
pub addr: SocketAddr,
|
||||
}
|
||||
|
||||
impl ForwardTarget {
|
||||
pub fn port(&self) -> u16 {
|
||||
self.addr.port()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ForwardTarget> for SocketAddr {
|
||||
fn from(value: ForwardTarget) -> Self {
|
||||
value.addr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue