diff options
| author | historia <[not public]> | 2026-09-18 17:48:26 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 17:48:26 -0400 |
| commit | 8fe9e3c3fef0049df82281a62afe35dda516dfe2 (patch) | |
| tree | dd269f2c0710f334e19f00a191260ebc46284a90 /internal/net/wsconn.go | |
| parent | 194164a77eb4f2479b94c19e6f0e1278ab608781 (diff) | |
| download | thehouseoficarus-8fe9e3c3fef0049df82281a62afe35dda516dfe2.tar.gz | |
fix: close combat ghost, admin traversal, login throttle, journal double-pay, and quality/economy gaps
Diffstat (limited to 'internal/net/wsconn.go')
| -rw-r--r-- | internal/net/wsconn.go | 8 |
1 files changed, 8 insertions, 0 deletions
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 { |
