9 lines
191 B
Bash
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 |