openconnect: introduced script parameter
This allows specifying a custom vpnc-compatible config script.
Maintainer: me Compile tested: n/a (runtime only) Run tested: OpenWRT 23.05.5 (Routerich AX3000) with and without set option
Description: This allows specifying a custom vpnc-compatible config script.
@BKPepe, is any action needed?
Thank you for the PR. Can you give some context on why this is needed?
Thank you for the PR. Can you give some context on why this is needed?
Yep, of course. In cases of improperly configured servers, it may be necessary to change the behavior of the vpnc-script. Specifically, in my case, I redefined the CISCO_SPLIT_DNS environment variable with a custom script that resolves only the addresses of specified domains through the DNS provided by the tunnel. So for now, it requires manually making changes to the package's scripts and maintaining those changes during updates.
#!/bin/sh
export CISCO_SPLIT_DNS=domain1.com,domain2.com
. /lib/netifd/vpnc-script
Thank you.