mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
oe-git-proxy: Avoid resolving NO_PROXY against local files
NO_PROXY may contain * elements, and if we are unlucky (or want to match all hosts with *), we will pick up local files rather than doing the match in match_host. Quoting helps here. (From OE-Core rev: 7e216e806ca765152fd874e24785f783a3201284) (From OE-Core rev: 5b5c8ccaba188530ae4b05fd49804aaa74cbb949) Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
31ed0032ed
commit
909e75e53b
@@ -131,8 +131,8 @@ if [ -z "$ALL_PROXY" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Connect directly to hosts in NO_PROXY
|
# Connect directly to hosts in NO_PROXY
|
||||||
for H in ${NO_PROXY//,/ }; do
|
for H in "${NO_PROXY//,/ }"; do
|
||||||
if match_host $1 $H; then
|
if match_host $1 "$H"; then
|
||||||
exec $SOCAT STDIO $METHOD
|
exec $SOCAT STDIO $METHOD
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user