现在网上的大部分方法都挺复杂的,偶尔看到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












网友评论