mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
dockersetup: warn if http proxy specified without https
You really need to specify these both together since during updates we will very likely fetch over both HTTP and HTTPS. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
f50f48cf01
commit
3775efc848
|
@ -59,6 +59,9 @@ def get_args():
|
||||||
except IndexError:
|
except IndexError:
|
||||||
raise argparse.ArgumentTypeError("http_proxy must be in format http://<myproxy:port>")
|
raise argparse.ArgumentTypeError("http_proxy must be in format http://<myproxy:port>")
|
||||||
|
|
||||||
|
if args.http_proxy and not args.https_proxy:
|
||||||
|
print('WARNING: http proxy specified without https proxy, this is likely to be incorrect')
|
||||||
|
|
||||||
for entry in args.portmapping.split(','):
|
for entry in args.portmapping.split(','):
|
||||||
if len(entry.split(":")) != 2:
|
if len(entry.split(":")) != 2:
|
||||||
raise argparse.ArgumentTypeError("Port mapping must in the format HOST:CONTAINER. Ex: 8080:80. Multiple mappings should be separated by commas.")
|
raise argparse.ArgumentTypeError("Port mapping must in the format HOST:CONTAINER. Ex: 8080:80. Multiple mappings should be separated by commas.")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user