瀏覽代碼

oe-git-proxy: NO_PROXY suffix matching without wildcard for match_host

NO_PROXY can also contain just suffixes that do not start with a "*". We
failed to match those so far. Just add an extra "*" to also match those
suffixes. If one was there we get "**" which does not hurt.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Henning Schild 4 年之前
父節點
當前提交
12f0cc209a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/oe-git-proxy

+ 1 - 1
scripts/oe-git-proxy

@@ -107,7 +107,7 @@ match_host() {
 	HOST=$1
 	GLOB=$2
 
-	if [ -z "${HOST%%$GLOB}" ]; then
+	if [ -z "${HOST%%*$GLOB}" ]; then
 		return 0
 	fi