Skip to content

Commit ba3ec91

Browse files
committed
fix caddy proxy
1 parent 578cc26 commit ba3ec91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/caddy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ${host}:${is_https_port} {
4242
xhttp)
4343
cat >${is_caddy_site_file} <<<"
4444
${host}:${is_https_port} {
45-
reverse_proxy ${path}/* 127.0.0.1:${port}
45+
reverse_proxy ${path}/* h2c://127.0.0.1:${port}
4646
import ${is_caddy_site_file}.add
4747
}"
4848
;;

xray.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
args=$@
4-
is_sh_ver=v1.25
4+
is_sh_ver=v1.26
55

66
. /etc/xray/sh/src/init.sh

0 commit comments

Comments
 (0)