mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-25 04:50:53 +03:00
fixed configuration logic as mentioned in #90
This commit is contained in:
parent
21f524f711
commit
35e9f43b02
4
tls.c
4
tls.c
@ -215,7 +215,9 @@ parse_extensions(const struct TLSProtocol *tls_data, const char *data, size_t da
|
||||
} else if (extension_type == 0x00 && tls_data->use_alpn == 0) { /* Server Name */
|
||||
return parse_server_name_extension(tls_data, data + pos + 4, len);
|
||||
} else if (extension_type == 0x10 && tls_data->use_alpn == 1) { /* ALPN */
|
||||
return parse_alpn_extension(tls_data, data + pos + 4, len);
|
||||
if (parse_alpn_extension(tls_data, data + pos + 4, len) > 0) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
pos += 4 + len; /* Advance to the next extension header */
|
||||
|
Loading…
x
Reference in New Issue
Block a user