ancwrd1 / snx-rs

Open source Linux client for Checkpoint VPN tunnels
GNU Affero General Public License v3.0
57 stars 5 forks source link

Issue when multiple DNS suffixes #15

Closed NicolasFR closed 3 months ago

NicolasFR commented 3 months ago

Hi, First, thank you very much for your work. I encountered a dns resolution problem for the vpn suffixes.

In the logs there is this message: DEBUG snx_rs::platform::linux::xfrm: Adding acquired DNS suffixes: ["XXXXX.fr;XXXX.fr"] instead of seeing ["XXXXX.fr","XXXX.fr"]

When I check resolvectl for VTI interface in dns suffixes I see that the ";" becomes a "\059" : DNS Domain: XXXXX.fr\059XXXXX.fr

I think it has to do with this line : https://github.com/ancwrd1/snx-rs/blob/70781a9e51033b06886b39826515ca00bfc993e1/src/tunnel/connector.rs#L323

By replacing the comma with a semicolon, then in the logs there are the 2 suffixes.

Can I propose a pull request ?