- cmd/lerproxy/app/bufpool.go
- Removed bufferPool-related code and `Pool` struct
- cmd/nwcclient/main.go
- Renamed `Method` to `Capability` for clarity in method handling
- pkg/utils/values/values.go
- Added utility functions to return pointers for various types
- pkg/utils/pointers/pointers.go
- Revised documentation to reference `utils/values` package for pointer utilities
- pkg/protocol/nwc/types.go
- Replaced redundant types and structures with simplified versions
- Introduced dedicated structs for `MakeInvoice`, `PayInvoice`, and related results
- Refactored `Transaction` and its fields for consistent type usage
- pkg/protocol/nwc/uri.go
- Added `ParseConnectionURI` function for URI parsing and validation
- pkg/protocol/nwc/client.go
- Refactored `Client` struct to improve key management and relay handling
- Introduced `Request` struct for generic method invocation payloads
- pkg/protocol/socketapi/handleAuth.go
- Added import for "orly.dev/pkg/utils/iptracker"
- Added logic to call iptracker.Global.Authenticate() on successful authentication
- pkg/protocol/openapi/event.go
- Added logic to call iptracker.Global.Authenticate() on successful authentication
- pkg/utils/iptracker/iptracker.go
- Introduced offense tracking and block duration calculation based on offense count
- Added Authenticate method to remove blocks upon successful authentication
- Modified isBlockedNoLock to always return true when an IP is blocked
- Added HasBlockDurationPassed, GetBlockDuration, and Reset methods
- pkg/version/version
- Bumped version number from v0.4.4 to v0.4.5
- 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
- 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