]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - fifos/start.go
gemini:// support
[tofuproxy.git] / fifos / start.go
index 528b2a9c7ad38548141c53457bca400a8bcb6232..570f4bc18828033f3ace41f9bc3a6d212f7f6622 100644 (file)
@@ -1,5 +1,6 @@
 /*
-tofuproxy -- flexible HTTP/WARC proxy with TLS certificates management
+tofuproxy -- flexible HTTP proxy, TLS terminator, X.509 certificates
+             manager, WARC/Gemini browser
 Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
@@ -78,7 +79,10 @@ func Start(fifos string) {
 
        go addWARC(filepath.Join(fifos, "add-warcs"))
        go del(
-               &warc.WARCsM, func(warcPath string) { delete(warc.WARCs, warcPath) },
+               &warc.WARCsM, func(warcPath string) {
+                       delete(warc.WARCs, warcPath)
+                       delete(warc.WARCsOffsets, warcPath)
+               },
                filepath.Join(fifos, "del-warcs"),
        )
 }