Skip to content

Commit 6bd1ce0

Browse files
committed
Fix DNS resolution and git dependencies
1 parent f3f6048 commit 6bd1ce0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/termux-metasploit-arm64.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
# Resolve each to an IPv4 address and write in hosts format
4747
missing=()
4848
for d in "${domains[@]}"; do
49-
ip4=$(dig +short A "$d" | head -n1 || true)
49+
# Get only IPv4 addresses, filter out CNAME responses
50+
ip4=$(dig +short A "$d" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' | head -n1 || true)
5051
if [[ -n "$ip4" ]]; then
5152
echo "$ip4 $d" >> "$HOSTS"
5253
else
@@ -96,7 +97,7 @@ jobs:
9697
# Use primary Termux mirror (bypasses pkg mirror selection)
9798
echo "deb https://packages.termux.dev/apt/termux-main stable main" > /data/data/com.termux/files/usr/etc/apt/sources.list
9899
apt update -y
99-
DEBIAN_FRONTEND=noninteractive apt install -y curl git -o Dpkg::Options::="--force-confnew"
100+
DEBIAN_FRONTEND=noninteractive apt install -y curl git libssh2 -o Dpkg::Options::="--force-confnew"
100101
'
101102
102103
- name: Run metasploit installer from this repo

0 commit comments

Comments
 (0)