goflyway icon indicating copy to clipboard operation
goflyway copied to clipboard

新版本不支持CDN了吗?

Open nasty23 opened this issue 5 years ago • 3 comments

我有个老版本的在另一个VPS是可以的。 这个新的VPS下 两个域名套用了CDN,一个是wordpress小站,另一个是反代了某站 本地bat启动文件配置如下 goflyway.exe -up="cf://xxxxxxxxxxxx.tk:80" -k="xxxxxxxxx" -l=":8100" pause>nul

两个都无法成功,单独用IP是可以的, 两个域名都正常访问,都 开启了强制https

D:\goflyway_windows_amd64\2.0.0 rc1>goflyway.exe -up="cf://xxxxxxxxxxxx.tk :80" -k="xxxxxxxxx" -l=":8100" 时间 CST,main.go:267, INFO ,goflyway 181021015134 时间 CST,main.go:436, INFO ,Upstream config: cf://xxxxxxxxxxxx.tk:80 时间 CST,main.go:416, INFO ,Client 7xxxxx started: you->0.0. 0.0:8100->cloudflare->xxxxxxxxxxxx.tk:80 时间 CST,main.go:412, INFO ,Web console started at 127.0.0.1: 8110 时间 CST,client.go:394, ERROR ,"Dial failed: invalid websocke t response from www.google.com:443: HTTP/1.1 301 Moved Permanently Date: 时间 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: keep-alive Set-Cookie: __cfduid=d0acc596dae5605137xxxxxxxxxxxxxxxxxxx; expires=时间GMT; path=/; domain=.xxxxxxxxxxxx.tk; HttpOnly Location: https://xxxxxxxxxxxx.tk/t38onzioEAkCzxxxxxxxxxxEs7vtmjE?BA-.E4giqlli7 i6xCF._jy6q5.rntxqzChzx=gql+r&.j187 Server: cloudflare CF-RAY: 487f8xxxx86f792e2-SJC

nasty23 avatar Dec 12 '18 10:12 nasty23

老版本不支持cf强制https的选项 新版本要-up="cf://xxxx:443" -U https

coyove avatar Dec 12 '18 10:12 coyove

老版本不支持cf强制https的选项 新版本要-up="cf://xxxx:443" -U https

写成这样,还是不行啊 goflyway.exe -up="cf://xxxxxxx.tk:443" -U https -k="xxxxxxxxxxx" -l=":8100" pause>nul

不过报错的好像不太一样的。而且访问的地址会在打不开后自动跳转到 https://xxxxxxxx.tk/+si5tCCh?.B+q2A22r5syDCwxxxxF.F5w6ipo+Cozgss+jwrr+.g4.1iqsC90B2gxxx1vgE6i8knpD96xxxxAgD78lt2=hD_9r6mxxxCE9 这个跳转的地址也是打不开的。


更新一下,goflyway换了个端口可以用CDN了,但是老大你给的新的写法还是不行压 端口换成8880后, goflyway.exe -up="cf://xxxxxxxxxxxx.tk:8880" -k="xxxxxxxxx" -l=":8100"可以用了 但是你给的新的写法goflyway.exe -up="cf://xxxxxxx.tk:443" -U https -k="xxxxxxxxxxx" -l=":8100" 还是不行,用之前老的写法是不是无法强制https?? 那个端口443是网站加密端口443,还是我goflyway的端口也要换成这个呢?

nasty23 avatar Dec 12 '18 11:12 nasty23

服务端的输出是什么(加上-lv dbg

coyove avatar Dec 13 '18 03:12 coyove