khatru: serve relay only from the path specified in ServiceURL.

This commit is contained in:
fiatjaf
2025-12-30 23:58:33 -03:00
parent e52ffa631b
commit f47b77272b
2 changed files with 26 additions and 9 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ type Relay struct {
ctx context.Context
cancel context.CancelCauseFunc
// setting this variable overwrites the hackish workaround we do to try to figure out our own base URL
// setting this variable overwrites the hackish workaround we do to try to figure out our own base URL.
// it also ensures the relay stuff is served only from that path and not from any path possible.
ServiceURL string
// hooks that will be called at various times