dev4u

Results 60 comments of dev4u
trafficstars

噢,是我漏做这一步,回去再试试。

我尝试整合到android,启动的时候报错。 ``` 2022-06-09 23:37:00.155 6188-6540/com.github.shadowsocks E/libsslocal: thread 'main' panicked at 'create local: Custom { kind: Other, error: InvalidConfig }', src/service/local.rs:781:51 ``` 我把在android下启动sslocal的配置打印出来,大概是这样的: ```json { "server": "****", "server_port": ****, "password": "****",...

> Remove `tun_interface_name` and `tun_interface_address` 好的,回去再试试。谢谢!

@zonyitoo 按照你的建议修改配置,还是报`InvalidConfig`异常 ```json { "server": "*******", "server_port": 9999, "password": "******", "method": "2022-blake3-aes-128-gcm", "timeout": 30, "mode": "tcp_and_udp", "dns": "unix://local_dns_path", "locals": [ { "local_address": "127.0.0.1", "local_port": 1080, "local_udp_address": "127.0.0.1", "local_udp_port": 1080, "mode":...

@zonyitoo 需要设置mtu参数, ```log 2022-06-10 23:42:56.555 31826-2334/com.github.shadowsocks E/libsslocal: 2022-06-10T23:42:56.554187627+08:00 INFO [2332:528444605688] [shadowsocks_rust::service::local] shadowsocks local 1.15.0-alpha.5 build 2022-06-10T14:43:13.312917+00:00 2022-06-10 23:42:56.557 31826-2334/com.github.shadowsocks E/libsslocal: 2022-06-10T23:42:56.556869242+08:00 INFO [2332:528444605688] [shadowsocks_service::local] waiting tun's file descriptor from sock_path...

直接在代码里写死mtu值,启动不断报处理异常: ```log 2022-06-11 00:16:07.748 24363-24549/com.github.shadowsocks E/libsslocal: 2022-06-11T00:16:07.747748639+08:00 INFO [24547:526159967480] [shadowsocks_rust::service::local] shadowsocks local 1.15.0-alpha.5 build 2022-06-10T16:00:44.260081+00:00 2022-06-11 00:16:07.749 24363-24549/com.github.shadowsocks E/libsslocal: 2022-06-11T00:16:07.749230826+08:00 INFO [24547:526159967480] [shadowsocks_service::local] waiting tun's file descriptor from sock_path 2022-06-11...

终于可以在android下跑起来了。 但是初步试用了一下,发现还存在一些问题。不确定是软件的问题?还是配置问题? ```log 2022-06-11 23:01:31.626 15539-15754/com.github.shadowsocks E/libsslocal: 2022-06-11T23:01:31.625382896+08:00 ERROR [15751:527072939264] [shadowsocks_service::local::tun::tcp] TCP tunnel failure, 10.35.244.188:43140 172.19.0.2:853, error: Connection timed out (os error 110) ``` 这条日志,是github官方客户端在打开的时候,发起的dot dns查询,对应的dns服务器地址是dns.google。 dns.google,这个域名,我已经配置在代理名单中,但走代理失败了导致查询失败。 除了这个,还有访问YouTube客户端(客户端走udp的),很久才加载到内容,换回旧程序,加载内容明显要快上许多。这个我怀疑是dns查询走的路由导致的。

@zonyitoo 我想了解一下,TUN服务会按照配置文件中,dns的设置信息来处理请求吗? 我配置的远端dns是127.0.0.53,并且在acl配置127.0.0.53/32在代理列表中,TUN会怎么处理dns请求?

那真的是不知怎么回事。 我观察到,TUN模式下,只有TG是运行比较良好,除此之外其他的,例如用浏览器打开google、youtube客户端……都存在不同程序的不可用。我观察android后台,发起的请求很少是走代理的,都走直连。个别走代理的,也存在一定几率连接超时。

> Accepts a `TcpStream` and then choose protocol automatically by the first byte? > > ```rust > match first_byte { > 0x05 => handle_socks5_stream > 0x04 => handle_socks4_stream > 'H'...