summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authormicah <micah@riseup.net>2020-04-12 05:49:10 -0700
committermicah <micah@riseup.net>2020-04-12 05:49:10 -0700
commitf044f74a7077464e2ee99c8c4df67808d9031dcb (patch)
tree0974ec801ddc9fb27b427c119e3b1de7a2519ca4 /main.go
parent4591ca4ba79f429f5ffcd29d884a189917321857 (diff)
parent2a87964a794b050599b5352110d858b80eacecc4 (diff)
Merge branch 'feat/no-cache' into 'master'
[feat] nocache See merge request leap/getmyip!6
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index aa57c86..e883834 100644
--- a/main.go
+++ b/main.go
@@ -254,7 +254,7 @@ func main() {
bonafide.listGateways()
mux := http.NewServeMux()
- jh := &jsonHandler{&geoipdb}
+ jh := noCache(&jsonHandler{&geoipdb})
mux.Handle("/json", jh)
th := &txtHandler{&geoipdb}