zaneschepke / wgtunnel

An alternative Android client app for WireGuard VPN
https://zaneschepke.com/wgtunnel-docs
MIT License
831 stars 45 forks source link

[BUG] - Search domains disappear from DNS setting of WireGuard tunnel #362

Open dsh2dsh opened 2 weeks ago

dsh2dsh commented 2 weeks ago

Describe the bug Search domains added to the DNS setting are not restored when editing the config, thus are lost on next save unless entered again each time.

Smartphone (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Go to the tunnel config editor.
  2. Add a search domain to the DNS input, e.g. 10.5.5.1 -> 10.5.5.1, mydomain.example, so that queries for machine are first qualified to machine.mydomain.example.
  3. Save the config.
  4. Open the same tunnel's config.

Expected behavior The input should contain the search domain but only has the DNS server IP(s).

Additional context This is a copy-paste of #233, because I can't add my comment there, but I've got the same problem using latest release.

zaneschepke commented 2 weeks ago

Hello! Thank you for the report. I'll look into a fix for this!