~egtann/sjs

aa595c9effd7a84727cfc3259b7dd1211fa698d2 — Evan Tann 1 year, 7 months ago 6f37ced
.
1 files changed, 5 insertions(+), 1 deletions(-)

M http/service.go
M http/service.go => http/service.go +5 -1
@@ 97,7 97,11 @@ func (s *Service) addWorker(w http.ResponseWriter, r *http.Request) {
		return
	}
	role := r.Header.Get("X-Role")
	s.log.Printf("good heartbeat (%s@%s)", role, r.RemoteAddr)
	host := r.Header.Get("X-Real-IP")
	if host == "" {
		host = r.RemoteAddr
	}
	s.log.Printf("good heartbeat (%s@%s)", role, host)
	w.WriteHeader(http.StatusOK)
}