diff options
Diffstat (limited to 'import-layers/yocto-poky/scripts/oe-git-proxy')
-rwxr-xr-x | import-layers/yocto-poky/scripts/oe-git-proxy | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/import-layers/yocto-poky/scripts/oe-git-proxy b/import-layers/yocto-poky/scripts/oe-git-proxy index 124790240..0078e9545 100755 --- a/import-layers/yocto-poky/scripts/oe-git-proxy +++ b/import-layers/yocto-poky/scripts/oe-git-proxy @@ -86,13 +86,14 @@ match_host() { # Match by netmask if valid_ipv4 $GLOB; then - HOST_IP=$(gethostip -d $HOST) - if valid_ipv4 $HOST_IP; then - match_ipv4 $GLOB $HOST_IP - if [ $? -eq 0 ]; then - return 0 + for HOST_IP in $(getent ahostsv4 $HOST | grep ' STREAM ' | cut -d ' ' -f 1) ; do + if valid_ipv4 $HOST_IP; then + match_ipv4 $GLOB $HOST_IP + if [ $? -eq 0 ]; then + return 0 + fi fi - fi + done fi return 1 |