Skip to content

Commit 3c26b23

Browse files
committed
fast dig
1 parent ce6a0d2 commit 3c26b23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Homepage: https://github.com/ipitio/closure
44
Standards-Version: 3.9.2
55

66
Package: closure
7-
Version: 1.6.18
7+
Version: 1.6.19
88
Maintainer: ipitio <[email protected]>
99
Depends: curl, flatpak, gpg, hostapd, isc-dhcp-server, iw, macchanger, netplan.io, network-manager, net-tools, qrencode, rfkill, wireguard, wireless-tools, wget
1010
Recommends: containerd.io, docker-ce, docker-ce-cli, docker-buildx-plugin, docker-compose-plugin

lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ curl() {
232232
}
233233

234234
dig() {
235-
command dig "$1" +trace 2>/dev/null | grep -oP "(?<=^${1//\./\\\.}\.).+(AAA)?A.+" | grep -oP '\S+$' || command dig +short "$1" 2>/dev/null | tail -n1
235+
command dig +short "$1" 2>/dev/null | tail -n1
236236
}
237237

238238
direct_domain() {

0 commit comments

Comments
 (0)