mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-14 05:52:48 +00:00
Introduce cancellation token and reduce amount of code (#88)
Test passed on Android. Thanks a lot.
This commit is contained in:
parent
2434c62524
commit
2a9775ce2e
8 changed files with 59 additions and 126 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
+ (void)startWithConfig:(NSString *)proxy_url
|
||||
tun_fd:(int)tun_fd
|
||||
tun_mtu:(uint32_t)tun_mtu
|
||||
tun_mtu:(uint16_t)tun_mtu
|
||||
dns_over_tcp:(bool)dns_over_tcp
|
||||
verbose:(bool)verbose;
|
||||
+ (void) shutdown;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
+ (void)startWithConfig:(NSString *)proxy_url
|
||||
tun_fd:(int)tun_fd
|
||||
tun_mtu:(uint32_t)tun_mtu
|
||||
tun_mtu:(uint16_t)tun_mtu
|
||||
dns_over_tcp:(bool)dns_over_tcp
|
||||
verbose:(bool)verbose {
|
||||
ArgDns dns_strategy = dns_over_tcp ? OverTcp : Direct;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue