美文网首页
梅林koolshare改版固件DDnspod插件无法更新域名解决

梅林koolshare改版固件DDnspod插件无法更新域名解决

作者: blueboyggh | 来源:发表于2019-12-07 21:39 被阅读0次

现在网上的大部分方法都挺复杂的,偶尔看到koolshare论坛里有个叫momopluto网友提到了一句将wget改成curl的方法,经试用非常简单。

将/koolshare/ddnspod下的ddnspod.sh文件打开,加入如下代码:

wget --quiet --output-document=- $inter$1

后加入:


    if [ $? != 0 ]; then
        curl --silent $inter$1
    fi

wget --quiet --no-check-certificate --output-document=- --user-agent=$agent --post-data $param $inter

后加入:

    if [ $? != 0 ]; then
        curl --silent -X POST -H 'charset=UTF-8;' --user-agent "$agent" --data "$param" $inter
    fi

如图:

截图

Github链接:
https://github.com/koolshare/koolshare.github.io/pull/1029/files

相关文章

网友评论

      本文标题:梅林koolshare改版固件DDnspod插件无法更新域名解决

      本文链接:https://www.haomeiwen.com/subject/dghpgctx.html