Files
proxmox/lxc/apt-proxy-detect.sh
T
2024-09-03 23:05:22 +02:00

9 lines
191 B
Bash

#!/bin/bash
# Acquire::http::Proxy-Auto-Detect "/usr/local/bin/apt-proxy-detect.sh";
if nc -w1 -z "192.168.1.219" 3142; then
echo -n "http://192.168.1.219:3142"
else
echo -n "DIRECT"
fi