Skip to content

Commit

Permalink
Pass command line arguments to zap.sh to the JVM, not to the ZAP jar.
Browse files Browse the repository at this point in the history
This seems related to zaproxy#29, where command line options for setting the
JVM's SOCKS proxy configuration are being ignored.
  • Loading branch information
fabacab committed Sep 18, 2015
1 parent 4d85b66 commit ce85306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ if [ "$OS" = "Darwin" ]; then
done

# It's likely that -Xdock:icon would be ignored on other platforms, but this is known to work
exec java ${JMEM} -Xdock:icon="../Resources/ZAP.icns" -jar "${BASEDIR}/zap-dev.jar" "${ZAP_ARGS[@]}"
exec java ${JMEM} -Xdock:icon="../Resources/ZAP.icns" "${ZAP_ARGS[@]}" -jar "${BASEDIR}/zap-dev.jar"
else
exec java ${JMEM} -jar "${BASEDIR}/zap-dev.jar" "$@"
exec java ${JMEM} "$@" -jar "${BASEDIR}/zap-dev.jar"
fi

0 comments on commit ce85306

Please sign in to comment.