Skip to content

Commit c197d82

Browse files
committed
fix for JA3N extension sorting
1 parent de8923c commit c197d82

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ There are also some useful **tags** available:
364364
* config => only update config and ssl certs
365365
* ssl or acme
366366
* geoip
367+
* lua
367368

368369
To debug errors - you can set the 'debug' variable at runtime:
369370
```bash

tasks/debian/geoip.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
owner: 'root'
3636
group: 'haproxy'
3737
mode: 0750
38+
tags: lua
3839

3940
- name: HAProxy | GeoIP | Checking if Lookup-Service Binary exists
4041
ansible.builtin.stat:

tasks/debian/install.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@
9898
name: 'haproxy.service'
9999
enabled: true
100100

101-
- name: HAProxy | Install | Add LUA SSL-Fingerprint module
101+
- name: HAProxy | Install | Add LUA SSL-Fingerprint (JA3N) module
102102
ansible.builtin.template:
103103
src: "templates{{ HAPROXY_HC.path.lua }}/ja3n.lua.j2"
104104
dest: "{{ HAPROXY_HC.path.lua }}/ja3n.lua"
105105
owner: 'root'
106106
group: 'haproxy'
107107
mode: 0750
108+
tags: lua

tasks/debian/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- name: HAProxy | Install
44
ansible.builtin.include_tasks: debian/install.yml
5-
tags: [install]
5+
tags: [install, lua]
66
args:
77
apply:
88
tags: [install]
@@ -18,7 +18,7 @@
1818
- name: HAProxy | GeoIP
1919
ansible.builtin.include_tasks: debian/geoip.yml
2020
when: HAPROXY_CONFIG.geoip.enable | bool
21-
tags: [geoip, config]
21+
tags: [geoip, config, lua]
2222
args:
2323
apply:
2424
tags: [geoip]

templates/etc/haproxy/lua/ja3n.lua.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function split_string(str, delimiter)
2121
end
2222

2323
local function sortNumbers(a, b)
24-
if a == nil or b == nil
24+
if (a == nil or b == nil)
2525
then
2626
return false
2727
end

0 commit comments

Comments
 (0)