-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report bugs to freedns dns api #2536
Comments
…y removing the use of the character class representation option. Fixes acmesh-official#2536
I have addressed this issue myself in this pull request: #2537 |
This should be updated to also remove tabs and spaces as well, and maybe even vertical tabs and form feeds. While things may be working just fine now, the subsequent greps and seds assume that spaces have been removed. FreeDNS does not presently have spaces in places that the code is sensitive to, but if that changed in the future this would fail. Hence if "[:space:]" won't work then I would replace with " \r\n\t\v\f" (note blank space within the string) |
Correction to my previous comment. You DO NEED to explicitly have a space character in the string as there ARE spaces that need to be removed for later greps to work. I recommend reverting the pull request #2537 and replacing the tr string with " \r\n\t\v\f" (note blank space within the string) |
Add support for Synology routers while using dnsapi/dns_freedns.sh. Synology router scripting stacks do not have a version of the "tr" command line utility that supports character class representation option i.e. the "[:space:]" :
tr -d "[:space:]"
should be replaced withtr -d "\r\n"
inside of dnsapi/dns_freedns.sh for better support across embedded linux systems and routers.Existing good usage:
https://github.com/Neilpang/acme.sh/blob/master/dnsapi/dns_freedns.sh#L161
Usages to replace:
https://github.com/Neilpang/acme.sh/blob/master/dnsapi/dns_freedns.sh#L306
https://github.com/Neilpang/acme.sh/blob/master/dnsapi/dns_freedns.sh#L352
Steps to reproduce
Use a Synology router to run acme.sh
Debug log
The script silently fails and simply doesn't parse the freedns web page correctly.
The text was updated successfully, but these errors were encountered: