blob: 57eca70b499db4224541efbc39a8ec8d3f3c98a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
#
# Detect proxy URL via WPAD
#
# Author: Wolfgang Schweer
# License: GNU General Public License v2 or later
# This version uses pactester from package libpacparser1.
# Look up one of the www.debian.org IP addresses to avoid hanging on
# DNS if the skolelinux machines are not connected to the Internet.
proxy_url=$(curl -s http://wpad/wpad.dat | pactester -p - \
-u http://130.89.148.14 | awk '{print $2}' | cut -d';' -f1)
echo http_proxy=http://$proxy_url
|