Browse Source

Disable SNI on Android

pull/1877/head
Max Lv 7 years ago
parent
commit
5072be7a02
1 changed files with 2 additions and 0 deletions
  1. 2
      src/local.c

2
src/local.c

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

Loading…
Cancel
Save