mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-21 16:41:01 +00:00
IPv6 enabled
This commit is contained in:
parent
e518355756
commit
d7861128f4
3 changed files with 24 additions and 9 deletions
|
@ -99,6 +99,7 @@ pub struct Options {
|
|||
virtual_dns: Option<virtdns::VirtualDns>,
|
||||
mtu: Option<usize>,
|
||||
dns_over_tcp: bool,
|
||||
ipv6_enabled: bool,
|
||||
}
|
||||
|
||||
impl Options {
|
||||
|
@ -118,6 +119,11 @@ impl Options {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn with_ipv6(mut self) -> Self {
|
||||
self.ipv6_enabled = true;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn with_mtu(mut self, mtu: usize) -> Self {
|
||||
self.mtu = Some(mtu);
|
||||
self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue