Skip to content

Commit a4c9865

Browse files
author
hastmu
committed
first updates for #1, #7 and #8
1 parent 8983d4d commit a4c9865

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

README.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Issues:
1212
* No longer active maintained (deprecated warnings all over the place)
1313

1414
What do you get?
15-
- [X] detect via avahi
15+
- [X] Proxy detection via
16+
- avahi
17+
- set defaults
1618
- [X] caching of URL specific working proxy (or none if none works)
1719
- [X] caching over reboot if possible
1820
- [X] allow mixture of allowed and non allowed urls (no need for direct declaration)
@@ -22,9 +24,31 @@ What do you get?
2224
Example output:
2325
```
2426
dev@dev:~$ apt-proxy-detect.sh
25-
Service[ER][apt-cacher-ng proxy on squid-deb-proxy]@http://192.168.0.27:3142
26-
Service[OK][Squid deb proxy on squid-deb-proxy]@http://192.168.0.27:8000
27-
http://192.168.0.27:8000
27+
28+
usage: apt-proxy-detect.sh <defaults|set-default|url for proxy>
29+
30+
defaults ... list default proxies
31+
set-default <proxy1>,<proxy2> ... set default proxies
32+
url for proxy ... this is the url a proxy is tested for
33+
34+
```
35+
36+
or with setting default proxies:
37+
```
38+
dev@dev:~$ apt-proxy-detect.sh set-default https://192.168.0.2:8093,https://192.168.0.3:4544,http://192.168.0.27:8000
39+
defining default proxies...
40+
proxy: https://192.168.0.2:8093
41+
proxy: https://192.168.0.3:4544
42+
proxy: http://192.168.0.27:8000
43+
saved.
44+
```
45+
46+
or show default proxies:
47+
```
48+
dev@dev:~$ apt-proxy-detect.sh defaults
49+
proxy: https://192.168.0.2:8093
50+
proxy: https://192.168.0.3:4544
51+
proxy: http://192.168.0.27:8000
2852
```
2953

3054
or with specific checking (failing):
@@ -55,6 +79,11 @@ Reading state information... Done
5579

5680
# How to install?
5781

82+
Required packages can be installed via:
83+
```
84+
sudo apt install -y coreutils grep sed wget avahi-utils
85+
```
86+
5887
So the quickest way is:
5988
```
6089
curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/main/install.sh | sudo bash

0 commit comments

Comments
 (0)