#!/bin/sh
# TatkalHub Linux Proxy / IP setup helper
# Use AFTER purchase. Paste host/port from support.
# This only exports YOUR purchased HTTP proxy for this shell.

echo "TatkalHub Linux IP setup"
printf "Proxy host: "
read HOST
printf "Proxy port: "
read PORT
if [ -z "$HOST" ] || [ -z "$PORT" ]; then
  echo "Host and port required. Get them from TatkalHub after payment."
  exit 1
fi
export http_proxy="http://${HOST}:${PORT}"
export https_proxy="http://${HOST}:${PORT}"
echo "Proxy exported for this terminal: ${http_proxy}"
echo "Put the same values into your tatkal booking software proxy fields."
