summaryrefslogtreecommitdiffstats
path: root/scripts/oe-git-proxy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-git-proxy')
-rwxr-xr-xscripts/oe-git-proxy13
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index 1247902406..0078e95450 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -86,13 +86,14 @@ match_host() {
86 86
87 # Match by netmask 87 # Match by netmask
88 if valid_ipv4 $GLOB; then 88 if valid_ipv4 $GLOB; then
89 HOST_IP=$(gethostip -d $HOST) 89 for HOST_IP in $(getent ahostsv4 $HOST | grep ' STREAM ' | cut -d ' ' -f 1) ; do
90 if valid_ipv4 $HOST_IP; then 90 if valid_ipv4 $HOST_IP; then
91 match_ipv4 $GLOB $HOST_IP 91 match_ipv4 $GLOB $HOST_IP
92 if [ $? -eq 0 ]; then 92 if [ $? -eq 0 ]; then
93 return 0 93 return 0
94 fi
94 fi 95 fi
95 fi 96 done
96 fi 97 fi
97 98
98 return 1 99 return 1