mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
/ping with empty response
This commit is contained in:
parent
009b5bc72b
commit
3b2adc9a3e
@ -55,6 +55,7 @@ func (s *querysrv) Serve() {
|
||||
}
|
||||
|
||||
http.HandleFunc("/", s.handler)
|
||||
http.HandleFunc("/ping", handlePing)
|
||||
|
||||
tlsListener, err := tls.Listen("tcp", s.addr, tlsCfg)
|
||||
if err != nil {
|
||||
@ -390,3 +391,7 @@ func (s *querysrv) getRelays(device protocol.DeviceID) ([]annRelay, error) {
|
||||
|
||||
return res, nil
|
||||
}
|
||||
|
||||
func handlePing(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(204)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user