Skip to content

Commit

Permalink
fix for JA3N extension sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Aug 25, 2024
1 parent de8923c commit c197d82
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ There are also some useful **tags** available:
* config => only update config and ssl certs
* ssl or acme
* geoip
* lua

To debug errors - you can set the 'debug' variable at runtime:
```bash
Expand Down
1 change: 1 addition & 0 deletions tasks/debian/geoip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
owner: 'root'
group: 'haproxy'
mode: 0750
tags: lua

- name: HAProxy | GeoIP | Checking if Lookup-Service Binary exists
ansible.builtin.stat:
Expand Down
3 changes: 2 additions & 1 deletion tasks/debian/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@
name: 'haproxy.service'
enabled: true

- name: HAProxy | Install | Add LUA SSL-Fingerprint module
- name: HAProxy | Install | Add LUA SSL-Fingerprint (JA3N) module
ansible.builtin.template:
src: "templates{{ HAPROXY_HC.path.lua }}/ja3n.lua.j2"
dest: "{{ HAPROXY_HC.path.lua }}/ja3n.lua"
owner: 'root'
group: 'haproxy'
mode: 0750
tags: lua
4 changes: 2 additions & 2 deletions tasks/debian/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- name: HAProxy | Install
ansible.builtin.include_tasks: debian/install.yml
tags: [install]
tags: [install, lua]
args:
apply:
tags: [install]
Expand All @@ -18,7 +18,7 @@
- name: HAProxy | GeoIP
ansible.builtin.include_tasks: debian/geoip.yml
when: HAPROXY_CONFIG.geoip.enable | bool
tags: [geoip, config]
tags: [geoip, config, lua]
args:
apply:
tags: [geoip]
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/haproxy/lua/ja3n.lua.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function split_string(str, delimiter)
end

local function sortNumbers(a, b)
if a == nil or b == nil
if (a == nil or b == nil)
then
return false
end
Expand Down

0 comments on commit c197d82

Please sign in to comment.