2025-05-12 16:42:36 +09:00
|
|
|
#!/bin/sh
|
|
|
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
|
|
|
|
|
|
case `uname` in
|
2025-05-16 12:11:51 +09:00
|
|
|
*CYGWIN*|*MINGW*|*MSYS*)
|
|
|
|
if command -v cygpath > /dev/null 2>&1; then
|
|
|
|
basedir=`cygpath -w "$basedir"`
|
|
|
|
fi
|
|
|
|
;;
|
2025-05-12 16:42:36 +09:00
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -x "$basedir/node" ]; then
|
2025-05-16 12:11:51 +09:00
|
|
|
exec "$basedir/node" "$basedir/../stream-throttle/bin/throttleproxy.js" "$@"
|
2025-05-12 16:42:36 +09:00
|
|
|
else
|
2025-05-16 12:11:51 +09:00
|
|
|
exec node "$basedir/../stream-throttle/bin/throttleproxy.js" "$@"
|
2025-05-12 16:42:36 +09:00
|
|
|
fi
|