Skip to content

Commit 73a36ea

Browse files
committed
nginx-ssl-ja3: fix curves and formats fp segments
- fix docker to expose 443 - fix nginx config to listen to all
1 parent 267d077 commit 73a36ea

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docker/debian-nginx-ssl-ja3/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ events {
88

99
http {
1010
server {
11-
listen 127.0.0.1:443 ssl;
11+
listen 443 ssl;
1212
ssl_certificate cert.pem;
1313
ssl_certificate_key rsa.key;
1414
error_log /dev/stderr debug;
@@ -18,7 +18,7 @@ http {
1818

1919
stream {
2020
server {
21-
listen 127.0.0.1:12345 ssl;
21+
listen 12345 ssl;
2222
ssl_certificate cert.pem;
2323
ssl_certificate_key rsa.key;
2424
error_log /dev/stderr debug;

docker/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ services:
2222
hostname: nginx-dev
2323
container_name: nginx-ssl-ja3
2424
ports:
25-
- "81:81"
25+
- "443:443"
2626
expose:
27-
- 81
27+
- 443
2828
network_mode: bridge
2929
tty: true
3030
privileged: true

src/ngx_ssl_ja3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ ngx_ssl_ja3(ngx_connection_t *c, ngx_pool_t *pool, ngx_ssl_ja3_t *ja3) {
292292
ngx_ssl_session_t *ssl_session;
293293
SSL *ssl;
294294
unsigned short *ciphers_out = NULL;
295-
unsigned char *curves_out = NULL;
296-
unsigned char *point_formats_out = NULL;
295+
int *curves_out = NULL;
296+
int *point_formats_out = NULL;
297297
size_t len = 0;
298298

299299
if (! c->ssl) {

0 commit comments

Comments
 (0)