mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-27 06:30:19 +01:00
removed enforcing of https for .onion
This commit is contained in:
parent
9d91c0640b
commit
0ec05a1888
3 changed files with 2 additions and 7 deletions
|
@ -584,11 +584,6 @@ func RedirectHandler(h http.Handler) http.HandlerFunc {
|
|||
} else if ipAddrFromRemoteAddr(r.Host) == "127.0.0.1" {
|
||||
} else if ipAddrFromRemoteAddr(r.Host) == "transfersh.elasticbeanstalk.com" {
|
||||
} else if ipAddrFromRemoteAddr(r.Host) == "jxm5d6emw5rknovg.onion" {
|
||||
if r.Header.Get("X-Forwarded-Proto") != "https" && r.Method == "GET" {
|
||||
|
||||
http.Redirect(w, r, "https://jxm5d6emw5rknovg.onion"+r.RequestURI, 301)
|
||||
return
|
||||
}
|
||||
} else if ipAddrFromRemoteAddr(r.Host) == "transfer.sh" {
|
||||
if r.Header.Get("X-Forwarded-Proto") != "https" && r.Method == "GET" {
|
||||
http.Redirect(w, r, "https://transfer.sh"+r.RequestURI, 301)
|
||||
|
|
|
@ -385,7 +385,7 @@
|
|||
<section id="tor">
|
||||
<div class="wrapper">
|
||||
<a href="https://torproject.com"><img src="images/tor.svg" alt=""></a><br/>
|
||||
<a href="https://jxm5d6emw5rknovg.onion/">https://jxm5d6emw5rknovg.onion/</a>
|
||||
<a href="http://jxm5d6emw5rknovg.onion/">http://jxm5d6emw5rknovg.onion/</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
|
@ -359,7 +359,7 @@ include "includes/head.html"
|
|||
<section id="tor">
|
||||
<div class="wrapper">
|
||||
<a href="https://torproject.com"><img src="images/tor.svg" alt=""></a><br/>
|
||||
<a href="https://jxm5d6emw5rknovg.onion/">https://jxm5d6emw5rknovg.onion/</a>
|
||||
<a href="http://jxm5d6emw5rknovg.onion/">http://jxm5d6emw5rknovg.onion/</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Reference in a new issue