Closed bswinnerton closed 6 years ago
Another approach would be to let the user manually pass in the $WANIP
and skip the ip addr show
logic altogether if it's been passed in.
With the changes in 1ca5ec089f5763be1adf9514297baeb5e0150f4b the wandev is no longer required, so I took it one step further and deprecated the option entirely!
Thanks for bringing this to my attention.
This pull request modifies the logic to of the
renew.acme.sh
script to pull the first WAN IP address when there are multiple addresses on the specified $WAN interface.As an example, with the current implementation:
Would result in a
$WANIP
of:Causing a
Verify error: connection refused
, because I assume thelighttpd.conf
file gets misconfigured.This pull request, rather unintelligently just grabs the first address: