Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit 223c712

Browse files
authored
Update v2gun.sh
1 parent 5ec1bc7 commit 223c712

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/v2gun.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,9 @@ WantedBy=multi-user.target
672672
EOF
673673
}
674674

675+
# naiveproxy support is still under experiment
676+
# forward_proxy only works with 443 port according to caddy2's document. will try to figure out this
677+
# https://github.com/caddyserver/forwardproxy/tree/caddy2
675678
set_caddy() {
676679
${sudoCmd} cat > "/usr/local/etc/caddy/Caddyfile"<<-EOF
677680
http://$1:80 {
@@ -681,7 +684,7 @@ http://$1:8080 {
681684
bind 127.0.0.1
682685
route {
683686
forward_proxy {
684-
basicauth user $2
687+
basic_auth user $2
685688
hide_ip
686689
hide_via
687690
probe_resistance unsplash.com:443

0 commit comments

Comments
 (0)