all repos — flounder @ b60b64a17d3a924e44fd4dafb511c1f5c4adc5d7

A small site builder for the Gemini protocol

fix IP forward address w caddy
alex wennerberg alex@alexwennerberg.com
Thu, 21 Jan 2021 20:39:43 -0800
commit

b60b64a17d3a924e44fd4dafb511c1f5c4adc5d7

parent

dd2cb2f7596b5de8a4102002eb572c55a41906fe

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M admin.goadmin.go

@@ -42,7 +42,7 @@ case "rename-user":

username := args[2] newUsername := args[3] err = renameUser(username, newUsername) - case "set-password": // TODO FIX -- broken atm + case "set-password": username := args[2] fmt.Print("Enter New Password: ") bytePassword, err := terminal.ReadPassword(int(syscall.Stdin))
M log.golog.go

@@ -42,7 +42,7 @@ username = user.Username

} // Get forwarded IP address - ipAddr := req.Header.Get("X-Real-IP") + ipAddr := req.Header.Get("X-Forwarded-For") // TODO make so it works with many servers if ipAddr == "" { ipAddr = req.RemoteAddr }