rsdns icon indicating copy to clipboard operation
rsdns copied to clipboard

Failing in func on Ubuntu

Open blakilox opened this issue 5 years ago • 0 comments

Hi Bug Report lib/func.sh When at the very last $NEXTURL a parse error is thrown in Ubuntu (funny seems ok in Centos) What it does is tries to curl a Null URL (and that also throws an exception on my firewall) I was able to fix that please consider this code or something similar around line 38 also this fix may be required elsewhere in the code

        elif [ "$PAGSTATUS0" == "previous" ]; then
            NEXTURL=`echo $jDOMAINSp | jq -r .links[1].href`
            if [ "$NEXTURL" == "null" ]
            then
                break
            else
            jDOMAINSp=`curl -A "rsdns/$RSDNS_VERSION (https://github.com/linickx/rsdns)" -k -s -X GET -H X-Auth-Token:\ $TOKEN $NEXTURL`
            fi
            #echo $jDOMAINSp
            jDOMAINS+=$jDOMAINSp
        else
            break
        fi

Thanks for developing this it is a really handy Library Regards Garry Hill

blakilox avatar Feb 03 '21 03:02 blakilox