trojan-gfw / igniter

A trojan client for Android (UNDER CONSTRUCTION).
GNU General Public License v3.0
3.3k stars 736 forks source link

Test error on Android 6.0 #358

Closed design-study closed 3 years ago

design-study commented 3 years ago

When I run on the Android 6 emulator, I can connect to the server, but the test will fail.

04-13 09:43:57.639 4367-4367/io.github.trojan_gfw.igniter.debug E/MainActivity: TestError: recvfrom failed: ECONNRESET (Connection reset by peer)

Environment:

wongsyrone commented 3 years ago

Please obtain the log via instructions in https://github.com/trojan-gfw/igniter/issues/197

design-study commented 3 years ago

@wongsyrone

After I click the START button, I can access the website through the proxy normally, but when I click the Test Connection button, it will display recvfrom failed: ECONNRESET (Connection reset by peer), and this situation will only appear in Android 6.0 (API 23) on the device.

Log detail:

igniter-log.txt

wongsyrone commented 3 years ago

@design-study Please post your kernel version

design-study commented 3 years ago

@wongsyrone

Screenshot_1619172230

wongsyrone commented 3 years ago

Depending on the environment, the emulator may not be able to support other protocols (such as ICMP, used for "ping") might not be supported.

https://www.androidcookbook.info/android-system/emulator-networking.html

I cannot reproduce the issue.

design-study commented 3 years ago

The Android 6.0 (API 23) emulator should be fine. After the service is connected, you can access the Google search homepage opening the browser. Using the adb shell to detect, the simulator can execute the ping command.

The problem is that clicking the test button in the app reports an error.

hoorace commented 3 years ago

I encountered the same problem, this is my device information.

Screenshot