- pkg/protocol/socketapi/socketapi.go
- Added import for "orly.dev/pkg/utils/iptracker"
- Added logic to check if an IP is blocked and reject the connection if it is
- pkg/protocol/socketapi/handleEvent.go
- Added imports for "orly.dev/pkg/utils/iptracker" and "time"
- Added logic to check if an IP is blocked, send a notice to the client, and close the connection if it is
- Added logic to record failed authentication attempts and block IPs that exceed the threshold
- pkg/protocol/openapi/event.go
- Added imports for "orly.dev/pkg/utils/iptracker" and "time"
- Added logic to check if an IP is blocked and return a forbidden error if it is
- Added logic to record failed authentication attempts and return appropriate errors based on whether the IP is blocked or not
- pkg/utils/iptracker/iptracker.go
- Created new package with functionality to track and block IPs based on failed authentication attempts
- pkg/version/version
- Bumped version number from v0.4.3 to v0.4.4
- pkg/protocol/socketapi/handleAuth.go
- Added comment block for handling pending events (currently commented out)
- pkg/protocol/ws/listener.go
- Added import of "orly.dev/pkg/encoders/event"
- Added `pendingEvent` field to Listener struct
- Added `SetPendingEvent` and `GetPendingEvent` methods
- pkg/protocol/socketapi/socketapi.go
- Added import of "orly.dev/pkg/encoders/envelopes/authenvelope"
- Added authentication challenge logic including logging, RequestAuth call, and envelope writing
- pkg/protocol/socketapi/handleReq.go
- Removed import of "orly.dev/pkg/encoders/envelopes/okenvelope"
- Modified auth handling logic to send closed envelope with reason if auth is required and client is not authenticated
- pkg/protocol/socketapi/handleEvent.go
- Removed import of "orly.dev/pkg/encoders/reason"
- Added authentication challenge logic including logging, RequestAuth call, Ok.AuthRequired method, and envelope writing
- pkg/version/version
- Bumped version from v0.2.17 to v0.2.18
- pkg/app/relay/handleRelayinfo.go
- Removed logging of info variable
- pkg/protocol/socketapi/socketapi.go
- Removed import of "orly.dev/pkg/encoders/envelopes/authenvelope"
- Removed authentication logic including challenge sending and logging
- pkg/app/relay/auth.go
- Removed import of "orly.dev/pkg/utils/lol"
- Removed tracing logic around ServiceURL function
- pkg/protocol/socketapi/handleReq.go
- Added logging for auth status
- Added logic to send authentication challenge if required and client is not authenticated
- pkg/protocol/socketapi/handleEvent.go
- Added import of "orly.dev/pkg/encoders/envelopes/authenvelope" and "orly.dev/pkg/encoders/reason"
- Added logging for auth status
- Added logic to send authentication challenge if required and client is not authenticated
- pkg/version/version
- Bumped version from v0.2.16 to v0.2.17
- pkg/protocol/socketapi/socketapi.go
- Added `message` parameter to log statement for unexpected close error
- Updated format string to include message in log output
- pkg/protocol/socketapi/handleReq.go
- Modified log message for not privileged event
- Changed format string to be more descriptive and include client and event pubkeys
- Updated `pkg/protocol/socketapi/socketapi.go` with "# Expected Behaviour" section using British spelling
- Enhanced `pkg/protocol/socketapi/handleEvent.go` parameter documentation with context type annotations
- Standardized return value formatting with consistent bracket placement
- Improved error message phrasing to use "can't" instead of "cannot" for consistency
- Added detailed implementation notes for event deletion validation logic
- Updated `pkg/protocol/socketapi/handleClose.go` to use "# Parameters" and "# Return Values" for consistent comment formatting
- Updated `pkg/protocol/socketapi/handleReq.go` with standardized parameter and return value documentation
- Modified `pkg/interfaces/relay/interface.go` to align comment style with parameter/return value sections
- Standardized comments in `pkg/protocol/socketapi/pinger.go` using "# Parameters" format
- Improved comment structure in `pkg/protocol/socketapi/socketapi.go` for parameter documentation
- Updated `pkg/protocol/socketapi/handleEvent.go` with consistent return value comment formatting