commit 8dcd337ce45555401ae75028356c8ea3d65fdc56
Author: David Fifield <da...@bamsoftware.com>
Date:   Fri Aug 11 13:08:36 2017 -0700

    Re-remove ipHandler function.
    
    Had been removed in 2a46db2c01985d144e25f537b5019b195af32782 and was
    erroneously restored in the merge
    36debdfdd24e978fc323ec352852fc4af0bc4ae5.
---
 broker/broker.go | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/broker/broker.go b/broker/broker.go
index 6cb08d9..b544e64 100644
--- a/broker/broker.go
+++ b/broker/broker.go
@@ -12,7 +12,6 @@ import (
        "fmt"
        "io/ioutil"
        "log"
-       "net"
        "net/http"
        "strings"
        "time"
@@ -222,15 +221,6 @@ func robotsTxtHandler(w http.ResponseWriter, r 
*http.Request) {
        w.Write([]byte("User-agent: *\nDisallow:\n"))
 }
 
-func ipHandler(w http.ResponseWriter, r *http.Request) {
-       remoteAddr := r.RemoteAddr
-       if net.ParseIP(remoteAddr).To4() == nil {
-               remoteAddr = "[" + remoteAddr + "]"
-       }
-       w.Header().Set("Content-Type", "text/plain; charset=utf-8")
-       w.Write([]byte(remoteAddr))
-}
-
 func main() {
        var acmeEmail string
        var acmeHostnamesCommas string

_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to