Introduce cancellation token and reduce amount of code (#88)

Test passed on Android. Thanks a lot.
This commit is contained in:
Andrej Mihajlov 2024-02-10 17:36:54 +01:00 committed by GitHub
parent 2434c62524
commit 2a9775ce2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 59 additions and 126 deletions

View file

@ -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;

View file

@ -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;