diff options
author | epoch <epoch@hack.thebackupbox.net> | 2020-04-16 00:06:57 +0000 |
---|---|---|
committer | epoch <epoch@hack.thebackupbox.net> | 2020-04-16 00:06:57 +0000 |
commit | 245e54a0bdb845e336cc5d62b93ec8a1d4330695 (patch) | |
tree | c99970eba90c7b709c191ed6aa60652121d28356 | |
parent | 61c209d35a47d126d0871bf03223eb1e8f7d8806 (diff) | |
download | uritools-245e54a0bdb845e336cc5d62b93ec8a1d4330695.tar.gz uritools-245e54a0bdb845e336cc5d62b93ec8a1d4330695.zip |
made getsrv use host instead of dig by default.
-rwxr-xr-x | getsrv | 8 | ||||
-rw-r--r-- | uricut.c | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -12,12 +12,12 @@ if [ "_$*" != "_" ];then else filter=cat fi -if which dig >/dev/null;then - dig +short -t SRV "$record" - #echo "after dig" >&2 -elif which host >/dev/null;then +if which host >/dev/null;then host -t SRV "$record" | cut '-d ' -f5- #echo "after host" >&2 +elif which dig >/dev/null;then + dig +short -t SRV "$record" + #echo "after dig" >&2 else echo "how am I supposed to get a srv record without dig or host? giving up." >&2 exit 1 @@ -39,7 +39,7 @@ int main(int argc,char *argv[]) { char *line=0; short args[256];//this needs to be a short to make room for the F_WHOLE_URI int i,j,c=0; - int size=1024; + int size=8192;//use this to increase max length of URIs we can read from stdin char at_least_one=0; char fixme=0; char using_stdin=1; |