mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2025-01-12 20:00:17 +01:00
updated suffix beanstalk check
This commit is contained in:
parent
45ac9a4022
commit
4ee9ccc484
1 changed files with 1 additions and 1 deletions
|
@ -582,7 +582,7 @@ func RedirectHandler(h http.Handler) http.HandlerFunc {
|
|||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.Path == "/health.html" {
|
||||
} else if ipAddrFromRemoteAddr(r.Host) == "127.0.0.1" {
|
||||
} else if ipAddrFromRemoteAddr(r.Host) == "transfersh.elasticbeanstalk.com" {
|
||||
} else if strings.HasSuffix(ipAddrFromRemoteAddr(r.Host), ".elasticbeanstalk.com") {
|
||||
} else if ipAddrFromRemoteAddr(r.Host) == "jxm5d6emw5rknovg.onion" {
|
||||
} else if ipAddrFromRemoteAddr(r.Host) == "transfer.sh" {
|
||||
if r.Header.Get("X-Forwarded-Proto") != "https" && r.Method == "GET" {
|
||||
|
|
Loading…
Reference in a new issue