mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 19:53:46 +00:00
Disable SNI on Android
This commit is contained in:
@@ -760,6 +760,7 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
|
||||
remote = create_remote(server->listener, NULL);
|
||||
|
||||
if (sni_detected) {
|
||||
#ifndef __ANDROID__
|
||||
// Reconstruct address buffer
|
||||
abuf->len = 0;
|
||||
abuf->data[abuf->len++] = 3;
|
||||
@@ -769,6 +770,7 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
|
||||
dst_port = htons(dst_port);
|
||||
memcpy(abuf->data + abuf->len, &dst_port, 2);
|
||||
abuf->len += 2;
|
||||
#endif
|
||||
|
||||
ss_free(hostname);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user