diff options
author | epoch <epoch@hack.thebackupbox.net> | 2020-01-21 16:24:41 +0000 |
---|---|---|
committer | epoch <epoch@hack.thebackupbox.net> | 2020-01-21 16:24:41 +0000 |
commit | 1d0c58a40cdad6f9f00ddab28a8a87e59b101fa7 (patch) | |
tree | e208da3417cb4066f629fd8b02ce4ec9a79fc618 /getsrv | |
parent | d1d712299808f819634aa9938741de9d5cb38986 (diff) | |
parent | d3f5b8e73bbea0c6b40a10628e00e6cde40aeb66 (diff) | |
download | uritools-1d0c58a40cdad6f9f00ddab28a8a87e59b101fa7.tar.gz uritools-1d0c58a40cdad6f9f00ddab28a8a87e59b101fa7.zip |
Merge branch 'master' of https://github.com/kkabrams/uritools
Diffstat (limited to 'getsrv')
-rwxr-xr-x | getsrv | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -19,7 +19,7 @@ elif which host >/dev/null;then host -t SRV "$record" | cut '-d ' -f5- echo "after host" >&2 else - echo "fuck me. how am I supposed to get a srv record without dig or host?" >&2 + echo "how am I supposed to get a srv record without dig or host? giving up." >&2 exit 1 fi | grep '^[0-9][0-9]* [0-9][0-9]*' \ | sort -rn \ @@ -34,3 +34,4 @@ fi | grep '^[0-9][0-9]* [0-9][0-9]*' \ | cut '-d ' -f2- \ | shuf \ | head -n1 \ +## that last pipeline tries to get pretty close to printing a properly weighted response, but not perfect. |