fwknop icon indicating copy to clipboard operation
fwknop copied to clipboard

Add an option to resolve IP address over IPv4 only

Open vincentbernat opened this issue 4 years ago • 1 comments

Hey!

When providing my own RESOLVE_URL, there is no way to tell the resolution should be done over IPv4 only. Notably, I was not able to specify WGET_CMD as /usr/bin/wget -4. Either we could add a WGET_OPTIONS for arbitrary wget options or add a specific option to force IPv4 for resolution.

Thanks.

vincentbernat avatar Aug 23 '21 08:08 vincentbernat

I had this issue too. I ended with a trick:

  • create a script /usr/local/lib/extra/wget4 containing /usr/bin/wget -4 $*
  • chmod +x /usr/local/lib/extra/wget4
  • set WGET_CMD to /usr/local/lib/extra/wget4

Seb35 avatar Oct 17 '23 16:10 Seb35