shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.19k stars 11.57k forks source link

client stuck during boot with no internet while server name needs resolution #1847

Closed HankAviator closed 6 years ago

HankAviator commented 6 years ago

Environment

Configuration

Put an x inside the [ ] that applies.

What did you do?

My phone doesn't enable data switch during boot, shadowsocks is stuck with the description below. The server name is an address and has to be resolved first to use, since no data during boot, some logical lines may be missing. Connectivity change, in this case, DOESN'T trigger a reconnection. Correct behavior observed when app killed: data off and attempts to connect to a domain will prompt a snack bar "server name invalid".

What did you expect to see?

Status: disconnected / connected and switching profiles and on/off available

What did you see instead?

Status: Closing; not possible to tap on plane icon to toggle status, nor reset the app itself. The workaround is kill the app and restart it.

Mygod commented 6 years ago

It's generally recommended to use IP address and profile name instead of host name unless you're using DDNS or sort. This way you can enjoy a faster speed and avoid issues like this and IPv4/IPv6 ambiguity.

HankAviator commented 6 years ago

yes, I remember this was not officially supported, but poka-yoke anyways.

Mygod commented 6 years ago

Please refer to https://github.com/shadowsocks/shadowsocks-libev/issues/942 for more information. We are still waiting for that "day". :smile:

HankAviator commented 6 years ago

I'm patient enough and kinda stubborn to stick to IPv4, about DNS since the pattern has been written i'm feeling happy again. 😄 I disabled my proxy server's IPv6 completely btw, had some weird issues when I experimented 6in4 tunnel in university and it's not advantageous enough to adopt v6 entirely yet.