mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 06:14:14 +00:00
Activated useSystemProxies java property when proxy config set
Fixes #415
This commit is contained in:
parent
2ee5a25c91
commit
34603184a4
1 changed files with 3 additions and 2 deletions
|
@ -40,6 +40,7 @@ rm /data/.verify_access || true
|
|||
if [[ $PROXY ]]; then
|
||||
export http_proxy="$PROXY"
|
||||
export https_proxy="$PROXY"
|
||||
export JAVA_TOOL_OPTIONS+="-Djava.net.useSystemProxies=true"
|
||||
log "INFO: Giving proxy time to startup..."
|
||||
sleep 5
|
||||
fi
|
||||
|
@ -115,11 +116,11 @@ case "${TYPE^^}" in
|
|||
;;
|
||||
|
||||
MAGMA)
|
||||
exec ${SCRIPTS:-/}start-magma "$@"
|
||||
exec ${SCRIPTS:-/}start-deployMagma "$@"
|
||||
;;
|
||||
|
||||
MOHIST)
|
||||
exec ${SCRIPTS:-/}start-mohist "$@"
|
||||
exec ${SCRIPTS:-/}start-deployMohist "$@"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue