Browse Source

Fix SNI parser

pull/1152/head
Max Lv 7 years ago
parent
commit
3b2a5d1a1f
2 changed files with 3 additions and 1 deletions
  1. 2
      .travis.yml
  2. 2
      src/local.c

2
.travis.yml

@ -15,7 +15,7 @@ before_install:
- popd
- wget https://tls.mbed.org/download/mbedtls-2.4.0-gpl.tgz
- tar xvf mbedtls-2.4.0-gpl.tgz
- pushd mbedtls-2.4.0-gpl
- pushd mbedtls-2.4.0
- make
- sudo make install
- popd

2
src/local.c

@ -532,6 +532,8 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
char host[257], ip[INET6_ADDRSTRLEN], port[16];
buffer_t *abuf = server->abuf;
abuf->idx = 0;
abuf->len = 0;
abuf->data[abuf->len++] = request->atyp;
int atyp = request->atyp;

Loading…
Cancel
Save