mirror of
https://github.com/mpolden/echoip.git
synced 2025-06-26 20:57:51 +02:00
committed by
Martin Polden
parent
e5c8310acb
commit
cba0928a65
14
http/http.go
14
http/http.go
@ -222,12 +222,20 @@ func (s *Server) DefaultHandler(w http.ResponseWriter, r *http.Request) *appErro
|
||||
}
|
||||
var data = struct {
|
||||
Response
|
||||
Host string
|
||||
JSON string
|
||||
Port bool
|
||||
Host string
|
||||
BoxLatTop float64
|
||||
BoxLatBottom float64
|
||||
BoxLonLeft float64
|
||||
BoxLonRight float64
|
||||
JSON string
|
||||
Port bool
|
||||
}{
|
||||
response,
|
||||
r.Host,
|
||||
response.Latitude + 0.05,
|
||||
response.Latitude - 0.05,
|
||||
response.Longitude - 0.05,
|
||||
response.Longitude + 0.05,
|
||||
string(json),
|
||||
s.LookupPort != nil,
|
||||
}
|
||||
|
Reference in New Issue
Block a user