#!/usr/bin/env bash
# 本机开发代理（SOCKS5）。用法: source scripts/proxy-env.sh
# 默认: 192.168.124.93:10808 — 可用 NEXUS_SOCKS_HOST / NEXUS_SOCKS_PORT 覆盖

export NEXUS_SOCKS_HOST="${NEXUS_SOCKS_HOST:-192.168.124.93}"
export NEXUS_SOCKS_PORT="${NEXUS_SOCKS_PORT:-10808}"
export NEXUS_SOCKS_URL="socks5h://${NEXUS_SOCKS_HOST}:${NEXUS_SOCKS_PORT}"

export ALL_PROXY="${NEXUS_SOCKS_URL}"
export all_proxy="${NEXUS_SOCKS_URL}"
export HTTP_PROXY="${NEXUS_SOCKS_URL}"
export HTTPS_PROXY="${NEXUS_SOCKS_URL}"
export http_proxy="${NEXUS_SOCKS_URL}"
export https_proxy="${NEXUS_SOCKS_URL}"
export NO_PROXY="localhost,127.0.0.1,::1,192.168.0.0/16,10.0.0.0/8"
export no_proxy="${NO_PROXY}"
