From 8fe9e3c3fef0049df82281a62afe35dda516dfe2 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 17:48:26 -0400 Subject: fix: close combat ghost, admin traversal, login throttle, journal double-pay, and quality/economy gaps --- internal/net/wsconn.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'internal/net/wsconn.go') diff --git a/internal/net/wsconn.go b/internal/net/wsconn.go index 29d1947..95f714c 100644 --- a/internal/net/wsconn.go +++ b/internal/net/wsconn.go @@ -27,6 +27,14 @@ func (w *wsConn) Write(b []byte) (int, error) { return len(b), err } +// RemoteAddr reports the peer address for the login throttle. +func (w *wsConn) RemoteAddr() string { + if w.conn == nil { + return "" + } + return w.conn.RemoteAddr().String() +} + // SetWriteDeadline delegates to the underlying websocket connection, which // supports deadlines natively. func (w *wsConn) SetWriteDeadline(ts time.Time) error { -- cgit v1.2.3