5 Commits

Author SHA1 Message Date
gyurix
27607d1a2e feat: add logging to Docker and iptables operations, fix iptables path
continuous-integration/drone/push Build is passing
- Create /var/log/network-go directory in Dockerfile for log storage
- Add comprehensive logging to Docker client creation, network management, and container operations
- Add logging to iptables rule management (list, delete, etc.)
- Fix iptables executable path resolution in deleteMatchingLinesInContainer to use configured binary path
2026-06-15 17:05:53 +02:00
gyurix
e5e19835f9 fix: use prefix matching instead of dash stripping for container resolution
continuous-integration/drone/push Build is passing
The previous logic stripped dashes from both the lookup name and container/selector names, performing an exact match after removal. This failed for cases like "wireguardproxy-client" matching "wireguardproxyclient" or "app-1"/"app-2" matching "app-x", because the dash removal produced different strings.

Change to extract the prefix before the first dash in the lookup name, then match it against the beginning of container/selector names. This preserves the intended relationship while allowing matching of dashed variants with prefix-based patterns.
2026-06-15 12:00:26 +02:00
gyurix
f9513cd98a fix(resolver): strip all dashes when matching container names
continuous-integration/drone/push Build is failing
Instead of prefix matching on the part before the first dash, now strip
all dashes from both the lookup name and the stored container/selector
names and compare exactly. This improves matching accuracy for names
containing multiple dashes or dashes in varying positions.
2026-06-15 11:55:00 +02:00
gyurix
fcda599ec7 added test go implementation
continuous-integration/drone/push Build encountered an error
2026-06-08 17:02:13 +02:00
gyurix
c3de398f35 added network-go project
continuous-integration/drone/push Build encountered an error
2026-06-08 15:34:01 +02:00